File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11const webpack = require ( 'webpack' )
22const middleware = require ( 'webpack-dev-middleware' )
33const config = require ( '../webpack.config' )
4- const FriendlyErrorsWebpackPlugin = require ( 'friendly-errors-webpack-plugin' )
54
65const webpackCompiler = webpack ( {
76 ...config ,
8- mode : 'development' ,
97 plugins : [
10- ...config . plugins ,
11- new FriendlyErrorsWebpackPlugin ( {
12- clearConsole : false
13- } )
8+ ...config . plugins
149 ]
1510} )
1611
1712module . exports = middleware ( webpackCompiler , {
18- publicPath : config . output . publicPath ,
19- logLevel : 'silent'
13+ publicPath : config . output . publicPath
2014} )
Original file line number Diff line number Diff line change @@ -5,13 +5,16 @@ const { EnvironmentPlugin } = require('webpack')
55const { reactBabelOptions } = require ( './lib/react/babel' )
66
77module . exports = {
8+ mode : 'development' ,
89 devtool : 'source-map' , // this prevents webpack from using eval
910 entry : './javascripts/index.js' ,
1011 output : {
1112 filename : 'index.js' ,
1213 path : path . resolve ( __dirname , 'dist' ) ,
1314 publicPath : '/dist'
1415 } ,
16+ // infrastructureLogging: { level: 'none' },
17+ stats : 'errors-only' ,
1518 module : {
1619 rules : [
1720 {
@@ -85,6 +88,8 @@ module.exports = {
8588 { from : 'node_modules/@primer/css/fonts' , to : 'fonts' }
8689 ]
8790 } ) ,
88- new EnvironmentPlugin ( [ 'NODE_ENV' ] )
91+ new EnvironmentPlugin ( {
92+ NODE_ENV : 'development' // use 'development' unless process.env.NODE_ENV is defined
93+ } )
8994 ]
9095}
You can’t perform that action at this time.
0 commit comments