fex-team / fis-parser-node-sass

Use node-sass to parser sass for fis/fis3.
MIT License
31 stars 23 forks source link

一个模块被@import 多次,打包的结果该模块的内容重复多次 #17

Open winnieBear opened 8 years ago

winnieBear commented 8 years ago

a.scss文件内容:

@charset "utf-8";
/*a.scss*/

b.scss文件内容

@charset "utf-8";
@import "a";
/*b.scss*/

c.scss文件内容:

@charset "utf-8";
@import "a";
@import "b";
/*c.scss*/

对c.scss编译结果a.scss内容出现两次是:

/*a.scss*/
/*a.scss*/
/*b.scss*/
/*c.scss*/
fancyboynet commented 8 years ago

这个是sass的问题好像

mmcai commented 7 years ago

同问这个问题,有没有解决方案的

winnieBear commented 7 years ago

我自己fix了一个版本,见 https://github.com/winnieBear/fis-parser-node-sass/commit/eb3f64185251ac3b52aba2542903432e6bb45ac8

2016-11-24 23:37 GMT+08:00 mmcai notifications@github.com:

同问这个问题,有没有解决方案的

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fex-team/fis-parser-node-sass/issues/17#issuecomment-262802558, or mute the thread https://github.com/notifications/unsubscribe-auth/AGu446e-mIUyhCvncsyjF-DdvcPqm6-8ks5rBa8ogaJpZM4HttQr .

sss63232 commented 7 years ago

最近有同樣的疑問,

不知道有沒有大大可以指導一下最佳的 sass import 方案