File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed
packages/@vue/cli-service Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ module.exports = (api, options) => {
55 const inlineLimit = 10000
66
77 webpackConfig
8+ . mode ( 'development' )
89 . context ( api . service . context )
910 . entry ( 'app' )
1011 . add ( './src/main.js' )
Original file line number Diff line number Diff line change 11module . exports = ( api , options ) => {
22 api . chainWebpack ( webpackConfig => {
33 if ( process . env . NODE_ENV === 'development' ) {
4- webpackConfig
5- . mode ( 'development' )
6-
74 webpackConfig
85 . devtool ( 'cheap-module-eval-source-map' )
96 . output
@@ -13,10 +10,6 @@ module.exports = (api, options) => {
1310 . plugin ( 'hmr' )
1411 . use ( require ( 'webpack/lib/HotModuleReplacementPlugin' ) )
1512
16- webpackConfig
17- . plugin ( 'named-modules' )
18- . use ( require ( 'webpack/lib/NamedModulesPlugin' ) )
19-
2013 webpackConfig
2114 . plugin ( 'no-emit-on-errors' )
2215 . use ( require ( 'webpack/lib/NoEmitOnErrorsPlugin' ) )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ let service = process.VUE_CLI_SERVICE
66if ( ! service ) {
77 const Service = require ( './lib/Service' )
88 service = new Service ( process . env . VUE_CLI_CONTEXT || process . cwd ( ) )
9- service . init ( )
9+ service . init ( process . env . VUE_CLI_MODE || process . env . NODE_ENV )
1010}
1111
1212module . exports = service . resolveWebpackConfig ( )
You can’t perform that action at this time.
0 commit comments