chore(@vant/cli): remove sass

This commit is contained in:
chenjiahan
2021-09-07 14:19:44 +08:00
parent cb0fb5a9e0
commit f0cc727c6a
5 changed files with 12 additions and 51 deletions

View File

@@ -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;
}

View File

@@ -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';