admin管理员组文章数量:1325236
I try use webpack to my app, but it build my app for 60-100sec each time.
How can i disable rebuild files from node_modules/*
and bower_ponents/*
or build them for separate chunk (per module or shared).
here is part of config:
{
test: /\.js$/,
exclude: /(node_modules|bower_ponents)/,
loaders: ['ng-annotate', 'babel-loader']
},
and
resolve: {
moduleDirectories: ['node_modules', 'bower_ponents']
},
How can i improve performance, by disabling rebuilding of libraries at each time?
I try use webpack to my app, but it build my app for 60-100sec each time.
How can i disable rebuild files from node_modules/*
and bower_ponents/*
or build them for separate chunk (per module or shared).
here is part of config:
{
test: /\.js$/,
exclude: /(node_modules|bower_ponents)/,
loaders: ['ng-annotate', 'babel-loader']
},
and
resolve: {
moduleDirectories: ['node_modules', 'bower_ponents']
},
How can i improve performance, by disabling rebuilding of libraries at each time?
Share Improve this question asked Oct 25, 2015 at 16:15 ubombiubombi 1,1742 gold badges16 silver badges32 bronze badges1 Answer
Reset to default 4We need to bundle vendor scripts separately. See this answer (stackoverflow)
本文标签: javascriptWebpack build very slow because of external librariesStack Overflow
版权声明:本文标题:javascript - Webpack build very slow because of external libraries - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742166351a2425897.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论