Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.js #19

Merged
merged 1 commit into from
Mar 26, 2015
Merged

Update index.js #19

merged 1 commit into from
Mar 26, 2015

Conversation

ksky521
Copy link
Contributor

@ksky521 ksky521 commented Mar 26, 2015

解决include_path 内import导致subpath为空报错问题。
比如业务模块A,引入common模块的sass库:bsass/_base.sass。
_base.sass内容:

@import 'core/vars'
@import 'core/css3'

A的fis-conf:

fis.config.set('settings.parser.sass', {
    // 加入文件查找目录
    include_paths: ['../common/static/', '../common/static/bsass/', '../common/static/bsass/core', '../common/static/bsass/ui']
});

会因为subpath为空,而报错

解决include_path 内import导致subpath为空报错问题。
比如业务模块A,引入common模块的sass库:bsass/_base.sass。
_base.sass内容:
```sass
@import 'core/vars'
@import 'core/css3'
```

A的fis-conf:
```js
fis.config.set('settings.parser.sass', {
    // 加入文件查找目录
    include_paths: ['../common/static/', '../common/static/bsass/', '../common/static/bsass/core', '../common/static/bsass/ui']
});
```

会因为subpath为空,而报错
@ksky521
Copy link
Contributor Author

ksky521 commented Mar 26, 2015

感觉没问题,希望发个新包~ 😄

@2betop
Copy link
Contributor

2betop commented Mar 26, 2015

编译机器上面支持跨模块编译吗?

2betop added a commit that referenced this pull request Mar 26, 2015
@2betop 2betop merged commit 01b650a into fex-team:master Mar 26, 2015
@2betop
Copy link
Contributor

2betop commented Mar 26, 2015

已经发版本!但是,fis模块最好是不要跨模块编译!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants