mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 01:17:15 +00:00
chore(@vant/cli): remove sass
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import { renderSync } from 'sass';
|
||||
|
||||
// allow to import from node_modules
|
||||
// @import "~package-name/var.scss"
|
||||
const tildeImporter = (url: string) => {
|
||||
@@ -16,6 +14,7 @@ const tildeImporter = (url: string) => {
|
||||
};
|
||||
|
||||
export async function compileSass(filePath: string) {
|
||||
const { renderSync } = require('sass');
|
||||
const { css } = renderSync({ file: filePath, importer: tildeImporter });
|
||||
return css;
|
||||
}
|
||||
|
1
packages/vant-cli/src/module.d.ts
vendored
1
packages/vant-cli/src/module.d.ts
vendored
@@ -1,6 +1,5 @@
|
||||
// some modules with missing type definitions
|
||||
declare module 'less';
|
||||
declare module 'sass';
|
||||
declare module 'execa';
|
||||
declare module 'hash-sum';
|
||||
declare module 'clean-css';
|
||||
|
Reference in New Issue
Block a user