From 614d315d8ae97684aaf51f22236ab4692e9254eb Mon Sep 17 00:00:00 2001 From: imsunhao Date: Thu, 16 Feb 2017 18:06:55 +0800 Subject: [PATCH] =?UTF-8?q?sass=20=E5=BF=BD=E8=A7=86=E6=89=80=E6=9C=89=20?= =?UTF-8?q?=5F=E5=BC=80=E5=A4=B4=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- use-sass/{a.scss => _a.scss} | 0 use-sass/a.js | 3 ++- use-sass/b.scss | 4 +++- use-sass/fis-conf.js | 5 ++++- 4 files changed, 9 insertions(+), 3 deletions(-) rename use-sass/{a.scss => _a.scss} (100%) diff --git a/use-sass/a.scss b/use-sass/_a.scss similarity index 100% rename from use-sass/a.scss rename to use-sass/_a.scss diff --git a/use-sass/a.js b/use-sass/a.js index f774eee..6c7ecec 100644 --- a/use-sass/a.js +++ b/use-sass/a.js @@ -1 +1,2 @@ -var scssStr = __inline('./a.scss'); \ No newline at end of file +var scssStr = __inline('./b.scss'); +console.log(scssStr); \ No newline at end of file diff --git a/use-sass/b.scss b/use-sass/b.scss index 16b4c53..1861bd0 100644 --- a/use-sass/b.scss +++ b/use-sass/b.scss @@ -4,4 +4,6 @@ $primary-color: #333; body { font: 100% $font-stack; color: $primary-color; -} \ No newline at end of file +} + +@import "_a"; \ No newline at end of file diff --git a/use-sass/fis-conf.js b/use-sass/fis-conf.js index cef7396..56ece66 100644 --- a/use-sass/fis-conf.js +++ b/use-sass/fis-conf.js @@ -1,4 +1,7 @@ -//npm install -g fis-parser-node-sass +//忽视所有 _开头的文件 +fis.match('_*.*', { + release: false +}); fis.match('**/*.scss', { rExt: '.css', // from .scss to .css parser: fis.plugin('node-sass', {