From 351866500ef780508af56eae8dd8378a8f2d1816 Mon Sep 17 00:00:00 2001 From: leixuesong <475216037@qq.com> Date: Tue, 9 Oct 2018 10:57:57 +0800 Subject: [PATCH] Update compiler.js (#712) --- build/compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/compiler.js b/build/compiler.js index fb8cfeab..d2fc55bb 100644 --- a/build/compiler.js +++ b/build/compiler.js @@ -23,7 +23,7 @@ gulp.task('compile-less', () => { .pipe(postcss()) .pipe(cssmin()) .pipe(insert.transform((contents, file) => { - if (!file.path.includes('packages/common')) { + if (!file.path.includes('packages'+ path.sep +'common')) { contents = `@import '../common/index.wxss';` + contents; } return contents;