File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ each environment. For example:
76
76
** dev.js **
77
77
``` js
78
78
module .exports = function (env ) {
79
+ return {
79
80
devtool: ' cheap-module-source-map' ,
80
81
output: {
81
82
path: path .join (__dirname , ' /../dist/assets' ),
@@ -91,12 +92,14 @@ module.exports = function (env) {
91
92
stats: ' minimal' ,
92
93
publicPath: publicPath
93
94
}
95
+ }
94
96
}
95
97
```
96
98
97
99
** prod.js **
98
100
``` js
99
101
module .exports = function (env ) {
102
+ return {
100
103
output: {
101
104
path: path .join (__dirname , ' /../dist/assets' ),
102
105
filename: ' [name].bundle.js' ,
@@ -120,6 +123,7 @@ module.exports = function (env) {
120
123
comments: false
121
124
})
122
125
]
126
+ }
123
127
}
124
128
```
125
129
Have the following snippet in our webpack.config.js:
You can’t perform that action at this time.
0 commit comments