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

mod模式下,怎么设置生成的mod文件是相对路径? #56

Open
MichaelGong opened this issue Jul 9, 2015 · 3 comments
Open

Comments

@MichaelGong
Copy link

mod模式下,怎么设置生成的mod文件是相对路径?

@oxUnd
Copy link
Contributor

oxUnd commented Jul 9, 2015

撒意思?

@MichaelGong
Copy link
Author

采用了这种方式

fis.hook('module', {
    mode: 'commonJS'
});

生成的页面中会相应的生成mod.js

script type="text/javascript" src="/static/js/mod.js"></script>

我想让mod.js的src是一个相对路径怎么设置?

@oxUnd
Copy link
Contributor

oxUnd commented Jul 11, 2015

@MichaelGong 可参考 fis3-hook-relative 插件,但大项目请使用绝对路径。

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