-
Notifications
You must be signed in to change notification settings - Fork 38
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
allInOne 接收对象配置项 文件名问题 #25
Comments
是这个吗? |
同问,如何修改这个名字或者与原js文件名相同也可以 |
目前只有这两个变量可以用。https://github.com/fex-team/fis3-postpackager-loader/blob/master/lib/pack.js#L105-L108 把你可能需要的数据在这说下吧。下次我就加上去。 |
有些情况是这样的,当多个页面中共用一个页面js文件pageCommon.js的时候。而像现在这样只能生成多个重复的js文件(page1.js, page2.js, page3.js....),尽管page1,page2等完全相同。 |
fileName 可以加。 你想用 allInOne 来实现共用部分的打包? 推荐用https://github.com/fex-team/fis3-packager-map 或者 https://github.com/fex-team/fis3-packager-deps-pack 的方式配置打包, 把共用的部分通过手动的方式配置好。两者可以结合。packager 中打包剩下的会在 loader 中 allInOne. |
谢谢, 当一个项目比较大的时候可能会有多个页面前端代码一致,有利于缓存的使用 另一个目的,也是主要的目的就为了把页面js文件的命名能与页面命名分开。 |
默认配置路径是按${filepath}输出出来,我只想输出文件名怎么办?试过好多都不行
The text was updated successfully, but these errors were encountered: