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

与JS 模块对应同名的 CSS 模块没有加载? #26

Closed
hanai opened this issue Jul 3, 2015 · 2 comments
Closed

与JS 模块对应同名的 CSS 模块没有加载? #26

hanai opened this issue Jul 3, 2015 · 2 comments

Comments

@hanai
Copy link
Contributor

hanai commented Jul 3, 2015

fis 中

在模板模块中以及 JS 模块中对应同名的 CSS 模块会自动与模板模块、JS 模块添加依赖关系,进行加载管理,用户不需要显示进行调用加载。

现在在 fis3 中没有生效。

@oxUnd
Copy link
Contributor

oxUnd commented Jul 3, 2015

FIS3 去除了这个功能,需要显示进行添加依赖

js

//@require id

css

/*@require id */

html

<!-- @require id -->

@hanai hanai closed this as completed Jul 3, 2015
@oxUnd
Copy link
Contributor

oxUnd commented Jul 3, 2015

@hanai 但,为了考虑到 fis2 用户的心情,我们加了一个属性。只要配置

fis.match('*.{html,js}', {
  useSameNameRequire: true
});

来开启,此功能。

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

No branches or pull requests

2 participants