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) => {
5
5
const inlineLimit = 10000
6
6
7
7
webpackConfig
8
+ . mode ( 'development' )
8
9
. context ( api . service . context )
9
10
. entry ( 'app' )
10
11
. add ( './src/main.js' )
Original file line number Diff line number Diff line change 1
1
module . exports = ( api , options ) => {
2
2
api . chainWebpack ( webpackConfig => {
3
3
if ( process . env . NODE_ENV === 'development' ) {
4
- webpackConfig
5
- . mode ( 'development' )
6
-
7
4
webpackConfig
8
5
. devtool ( 'cheap-module-eval-source-map' )
9
6
. output
@@ -13,10 +10,6 @@ module.exports = (api, options) => {
13
10
. plugin ( 'hmr' )
14
11
. use ( require ( 'webpack/lib/HotModuleReplacementPlugin' ) )
15
12
16
- webpackConfig
17
- . plugin ( 'named-modules' )
18
- . use ( require ( 'webpack/lib/NamedModulesPlugin' ) )
19
-
20
13
webpackConfig
21
14
. plugin ( 'no-emit-on-errors' )
22
15
. 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
6
6
if ( ! service ) {
7
7
const Service = require ( './lib/Service' )
8
8
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 )
10
10
}
11
11
12
12
module . exports = service . resolveWebpackConfig ( )
You can’t perform that action at this time.
0 commit comments