Не подключаем vendor.dll для production билда

This commit is contained in:
ErickSkrauch 2016-12-14 00:34:53 +03:00
parent 7374ac3564
commit 153fdacd7a

View File

@ -120,7 +120,7 @@ const webpackConfig = {
new HtmlWebpackPlugin({
template: 'src/index.ejs',
favicon: 'src/favicon.ico',
scripts: ['dll/vendor.dll.js'],
scripts: isProduction ? [] : ['dll/vendor.dll.js'],
hash: false, // webpack does this for all our assets automagically
filename: 'index.html',
inject: false,