Skip to content

Commit 7179d7c

Browse files
authored
Merge pull request #662 from kisnows/bugfix/production-build
Docs: Bugfix/production build
2 parents 1c86e5d + de89993 commit 7179d7c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

content/guides/production-build.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ contributors:
66
- rajagopal4890
77
- markerikson
88
- simon04
9+
- kisnows
910
---
1011

1112
This page explains how to generate production builds with webpack.
@@ -76,6 +77,7 @@ each environment. For example:
7677
** dev.js **
7778
```js
7879
module.exports = function (env) {
80+
return {
7981
devtool: 'cheap-module-source-map',
8082
output: {
8183
path: path.join(__dirname, '/../dist/assets'),
@@ -91,12 +93,14 @@ module.exports = function (env) {
9193
stats: 'minimal',
9294
publicPath: publicPath
9395
}
96+
}
9497
}
9598
```
9699

97100
** prod.js **
98101
```js
99102
module.exports = function (env) {
103+
return {
100104
output: {
101105
path: path.join(__dirname, '/../dist/assets'),
102106
filename: '[name].bundle.js',
@@ -120,6 +124,7 @@ module.exports = function (env) {
120124
comments: false
121125
})
122126
]
127+
}
123128
}
124129
```
125130
Have the following snippet in our webpack.config.js:

0 commit comments

Comments
 (0)