@@ -30,23 +30,19 @@ const devWebpackConfig = merge(baseWebpackConfig, {
3030 devServer : {
3131 clientLogLevel : 'warning' ,
3232 historyApiFallback : {
33- rewrites : [ {
34- from : / .* / ,
35- to : path . posix . join ( config . dev . assetsPublicPath , 'index.html' )
36- } ]
33+ rewrites : [
34+ { from : / .* / , to : path . posix . join ( config . dev . assetsPublicPath , 'index.html' ) }
35+ ]
3736 } ,
3837 hot : true ,
3938 contentBase : false , // since we use CopyWebpackPlugin.
4039 compress : true ,
4140 host : HOST || config . dev . host ,
4241 port : PORT || config . dev . port ,
4342 open : config . dev . autoOpenBrowser ,
44- overlay : config . dev . errorOverlay ?
45- {
46- warnings : false ,
47- errors : true
48- } :
49- false ,
43+ overlay : config . dev . errorOverlay
44+ ? { warnings : false , errors : true }
45+ : false ,
5046 publicPath : config . dev . assetsPublicPath ,
5147 proxy : config . dev . proxyTable ,
5248 quiet : true , // necessary for FriendlyErrorsPlugin
@@ -63,11 +59,13 @@ const devWebpackConfig = merge(baseWebpackConfig, {
6359 filename : utils . assetsPath ( '[name].css' )
6460 } ) ,
6561 // copy custom static assets
66- new CopyWebpackPlugin ( [ {
67- from : path . resolve ( __dirname , '../static' ) ,
68- to : config . dev . assetsSubDirectory ,
69- ignore : [ '.*' ]
70- } ] )
62+ new CopyWebpackPlugin ( [
63+ {
64+ from : path . resolve ( __dirname , '../static' ) ,
65+ to : config . dev . assetsSubDirectory ,
66+ ignore : [ '.*' ]
67+ }
68+ ] )
7169 ]
7270} )
7371
@@ -88,9 +86,9 @@ module.exports = new Promise((resolve, reject) => {
8886 compilationSuccessInfo : {
8987 messages : [ `Your application is running here: http://${ devWebpackConfig . devServer . host } :${ port } ` ]
9088 } ,
91- onErrors : config . dev . notifyOnErrors ?
92- utils . createNotifierCallback ( ) :
93- undefined
89+ onErrors : config . dev . notifyOnErrors
90+ ? utils . createNotifierCallback ( )
91+ : undefined
9492 } ) )
9593
9694 resolve ( devWebpackConfig )
0 commit comments