fis icon indicating copy to clipboard operation
fis copied to clipboard

settings.parser.sass include_paths :[] 是怎么配置的?

Open hhhome opened this issue 9 years ago • 11 comments

include_paths :[ 'compasss', 'css3' ] 写法是怎样的?是简单把目录名放进去呢 还是要用相对路径?

hhhome avatar Jan 28 '15 08:01 hhhome

相对与项目的相对目录

// 设置 sass 的 include_paths 便于组件引入
fis.config.set('settings.parser.sass.include_paths', [
    './static/scss',
    './components/compass-mixins'
]);

2betop avatar Jan 28 '15 08:01 2betop

也可以填入系统目录。

/Users/[YOUR NAME]/myproject/sass_folder

2betop avatar Jan 28 '15 08:01 2betop

填到系统目录里面,这是上线被坑死的节奏啊。

oxUnd avatar Jan 28 '15 08:01 oxUnd

前提是线下编译啊,尽量让项目编译,不要对其他目录有依赖!

2betop avatar Jan 28 '15 08:01 2betop

这些插件的配置文档在哪可以看到呢?在官网好像找不到

hhhome avatar Jan 28 '15 08:01 hhhome

https://github.com/fouber/fis-parser-sass

2betop avatar Jan 28 '15 08:01 2betop

github插件代码的仓库README

在 2015年1月28日,下午4:28,hhhome [email protected] 写道:

这些插件的配置文档在哪可以看到呢?在官网好像找不到

— Reply to this email directly or view it on GitHub https://github.com/fex-team/fis/issues/308#issuecomment-71797541.

oxUnd avatar Jan 28 '15 08:01 oxUnd

有找到这里,但觉得还不够详细。。比如 刚刚就是看到这里就不知道这个怎么配置

hhhome avatar Jan 28 '15 08:01 hhhome

@hhhome 嗯,说的是,以后会写得清晰一点,并且附上例子。

oxUnd avatar Jan 28 '15 08:01 oxUnd

嗯!谢谢

hhhome avatar Jan 28 '15 08:01 hhhome

看了还是不怎么懂,路径怎么写,编译完CSS存在哪里 fis.config.set('settings.parser.sass', { // 加入文件查找目录 include_paths: [stylesheets, path.join(stylesheets, 'compass', 'layout')] });

lindazhang102 avatar Jun 23 '15 06:06 lindazhang102