File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ let optimization = require('@constgen/neutrino-optimization');
2121
2222let clean = require ( './middlewares/clean' ) ;
2323let eslint = require ( './middlewares/eslint' ) ;
24- let open = require ( './middlewares/open' ) ;
2524
2625module . exports = function ( customSettings = { } ) {
2726 return function ( neutrino ) {
@@ -56,6 +55,7 @@ module.exports = function (customSettings = {}) {
5655 publicPath : '/' ,
5756 hot : true ,
5857 devServer : {
58+ open : settings . open ,
5959 hot : true ,
6060 port : settings . server . port ,
6161 host : settings . server . public ? '0.0.0.0' : 'localhost' ,
@@ -68,7 +68,10 @@ module.exports = function (customSettings = {}) {
6868 } ,
6969 html : {
7070 title : settings . title ,
71- favicon : faviconExists ? faviconPath : ''
71+ favicon : faviconExists ? faviconPath : '' ,
72+ meta : {
73+ 'X-UA-Compatible' : { 'http-equiv' : 'X-UA-Compatible' , 'content' : 'IE=edge' }
74+ }
7275 }
7376 } ;
7477 let reactSettings = {
@@ -92,7 +95,6 @@ module.exports = function (customSettings = {}) {
9295 neutrino . use ( staticFiles ( ) ) ;
9396 neutrino . use ( env ( ) ) ;
9497 neutrino . use ( analysis ( ) ) ;
95- if ( settings . open ) neutrino . use ( open ( ) ) ;
9698 neutrino . use ( optimization ( ) ) ;
9799 neutrino . use ( eslint ( ) ) ;
98100
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments