Skip to content

Commit ad6cc12

Browse files
authored
Merge pull request #714 from swapnilmishra/patch-1
Fixing code snippet and typo for production build guide
2 parents fe55b3d + 4a5e713 commit ad6cc12

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

content/guides/production-build.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ contributors:
88
- simon04
99
- kisnows
1010
- chrisVillanueva
11+
- swapnilmishra
1112
---
1213

1314
This page explains how to generate production builds with webpack.
@@ -128,13 +129,13 @@ module.exports = function (env) {
128129
}
129130
}
130131
```
131-
Have the following snippet in our webpack.config.js:
132+
Have the following snippet in your webpack.config.js:
132133
```js
133134
function buildConfig(env) {
134135
return require('./config/' + env + '.js')({ env: env })
135136
}
136137

137-
module.exports = buildConfig(env);
138+
module.exports = buildConfig;
138139
```
139140
And from our package.json, where we build our application using webpack, the command goes like this:
140141
```js

0 commit comments

Comments
 (0)