Skip to content

Commit fda313f

Browse files
authored
Merge pull request #581 from ChristophWurst/patch-1
Fix markdown headers by adding spaces
2 parents 382fdc9 + 7681256 commit fda313f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/guides/production-build.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ module.exports = {
7171
/*...*/
7272
};
7373
```
74-
##Configuring webpack for multiple environments
74+
## Configuring webpack for multiple environments
7575

7676
When we do have multiple configurations in mind for different environments, the easiest way is to write seperate js files for
7777
each environment. For example:
78-
####config/dev.js
78+
#### config/dev.js
7979
```js
8080
module.exports = function (env) {
8181
debug: true,
@@ -96,7 +96,7 @@ module.exports = function (env) {
9696
}
9797
}
9898
```
99-
####config/prod.js
99+
#### config/prod.js
100100
```js
101101
module.exports = function (env) {
102102
debug: false,
@@ -146,7 +146,7 @@ An advanced approach would be to have a base configuration file, put in all comm
146146
and then have environment specific files and simply use 'webpack-merge' to merge them. This would help to avoid code repetitions.
147147
For example, you could have all your base configurations like resolving your js, ts, png, jpeg, json and so on.. in a common base file as follows:
148148

149-
####base.js
149+
#### base.js
150150
```js
151151
module.exports = function() {
152152
return {
@@ -203,7 +203,7 @@ module.exports = function() {
203203
And then merge this base config with an environment specific configuration file using 'webpack-merge'.
204204
Let us look at an example where we merge our prod file, mentioned above, with this base config file using 'webpack-merge':
205205

206-
####prod.js (updated)
206+
#### prod.js (updated)
207207
```js
208208
const webpackMerge = require('webpack-merge');
209209

0 commit comments

Comments
 (0)