File tree 2 files changed +22
-17
lines changed
2 files changed +22
-17
lines changed Original file line number Diff line number Diff line change 147
147
"run-sequence" : " ^2.1.0" ,
148
148
"lazypipe" : " ^1.0.1" ,
149
149
<%# WEBPACK %>
150
- "webpack" : " ^3.5.5" ,
151
- "webpack-dev-server" : " ^2.4.2" ,
152
- "extract-text-webpack-plugin" : " 3.0.0" ,
153
- "html-webpack-plugin" : " ^2.24.1" ,
154
- "html-webpack-harddisk-plugin" : " ~0.1.0" ,
150
+ "webpack" : " ^4.12.0" ,
151
+ "webpack-cli" : " ^3.0.6" ,
152
+ "webpack-dev-server" : " ^3.1.4" ,
153
+ "extract-text-webpack-plugin" : " 4.0.0-beta.0" ,
154
+ "html-webpack-plugin" : " ^3.2.0" ,
155
+ "html-webpack-harddisk-plugin" : " ~0.2.0" ,
155
156
<%_ if(filters.pug) { _%>
156
157
"pug-html-loader" : " ^1.1.5" ,<% } %>
157
158
"typescript" : " ~2.6.1" ,
174
175
<%_ if(filters.stylus) { _%>
175
176
"stylus" : " ^0.54.5" ,
176
177
"stylus-loader" : " ^3.0.1" ,<% } %>
177
- "karma-webpack" : " ^2 .0.3 " ,
178
+ "karma-webpack" : " 4 .0.0-beta.0 " ,
178
179
"to-string-loader" : " ^1.1.5" ,
179
180
<%# END WEBPACK %>
180
181
"through2" : " ^2.0.1" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ var webpack = require('webpack');
5
5
var HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
6
6
var HtmlWebpackHarddiskPlugin = require ( 'html-webpack-harddisk-plugin' ) ;
7
7
var ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
8
- var CommonsChunkPlugin = webpack . optimize . CommonsChunkPlugin ;
9
8
var fs = require ( 'fs' ) ;
10
9
var path = require ( 'path' ) ;
11
10
@@ -26,6 +25,10 @@ module.exports = function makeWebpackConfig(options) {
26
25
*/
27
26
var config = { } ;
28
27
28
+ config . mode = BUILD
29
+ ? 'production'
30
+ : 'development' ;
31
+
29
32
/**
30
33
* Entry
31
34
* Reference: http://webpack.github.io/docs/configuration.html#entry
@@ -310,16 +313,17 @@ module.exports = function makeWebpackConfig(options) {
310
313
] ;
311
314
312
315
if ( ! TEST ) {
313
- config . plugins . push ( new CommonsChunkPlugin ( {
314
- name : 'vendor' ,
315
-
316
- // filename: "vendor.js"
317
- // (Give the chunk a different name)
318
-
319
- minChunks : Infinity
320
- // (with more entries, this ensures that no other module
321
- // goes into the vendor chunk)
322
- } ) ) ;
316
+ // TODO(webpack4)
317
+ // config.plugins.push(new CommonsChunkPlugin({
318
+ // name: 'vendor',
319
+ //
320
+ // // filename: "vendor.js"
321
+ // // (Give the chunk a different name)
322
+ //
323
+ // minChunks: Infinity
324
+ // // (with more entries, this ensures that no other module
325
+ // // goes into the vendor chunk)
326
+ // }));
323
327
}
324
328
325
329
// Skip rendering app.html in test mode
You can’t perform that action at this time.
0 commit comments