mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11: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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user