Skip to content

Commit b13971b

Browse files

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

content/guides/production-build.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ each environment. For example:
7676
** dev.js **
7777
```js
7878
module.exports = function (env) {
79+
return {
7980
devtool: 'cheap-module-source-map',
8081
output: {
8182
path: path.join(__dirname, '/../dist/assets'),
@@ -91,12 +92,14 @@ module.exports = function (env) {
9192
stats: 'minimal',
9293
publicPath: publicPath
9394
}
95+
}
9496
}
9597
```
9698

9799
** prod.js **
98100
```js
99101
module.exports = function (env) {
102+
return {
100103
output: {
101104
path: path.join(__dirname, '/../dist/assets'),
102105
filename: '[name].bundle.js',
@@ -120,6 +123,7 @@ module.exports = function (env) {
120123
comments: false
121124
})
122125
]
126+
}
123127
}
124128
```
125129
Have the following snippet in our webpack.config.js:

0 commit comments

Comments
 (0)