Skip to content

Commit 3180976

Browse files
committed
Add Use A Specific Config File as a webpack til
1 parent cade045 commit 3180976

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ _367 TILs and counting..._
2828
* [tmux](#tmux)
2929
* [Unix](#unix)
3030
* [Vim](#vim)
31+
* [Webpack](#webpack)
3132

3233
---
3334

@@ -443,6 +444,10 @@ _367 TILs and counting..._
443444
- [Whole Line Auto-Completion](vim/whole-line-auto-completion.md)
444445
- [Wrap With Some Room](vim/wrap-with-some-room.md)
445446

447+
## Webpack
448+
449+
- [Use A Specific Config File](webpack/use-a-specific-config-file.md)
450+
446451
## Usage
447452

448453
The `.vimrc` file for this project contains a function `CountTILs` that can

webpack/use-a-specific-config-file.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Use A Specific Config File
2+
3+
When running `webpack`, the default config file that it looks for is
4+
`webpack.config.js`. If you have a project that uses different webpack
5+
config files for different environments, you will need to specify which
6+
config file webpack should use. The `--config` flag can be used with
7+
`webpack` to specify that file. For instance, if you want to use your
8+
production webpack config, run a command like the following:
9+
10+
```
11+
$ webpack --config webpack.config.production.js
12+
```

0 commit comments

Comments
 (0)