1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Use A Specific Config File as a webpack til

This commit is contained in:
jbranchaud
2016-03-18 15:56:53 -05:00
parent cade045ee2
commit 318097634a
2 changed files with 17 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ _367 TILs and counting..._
* [tmux](#tmux) * [tmux](#tmux)
* [Unix](#unix) * [Unix](#unix)
* [Vim](#vim) * [Vim](#vim)
* [Webpack](#webpack)
--- ---
@@ -443,6 +444,10 @@ _367 TILs and counting..._
- [Whole Line Auto-Completion](vim/whole-line-auto-completion.md) - [Whole Line Auto-Completion](vim/whole-line-auto-completion.md)
- [Wrap With Some Room](vim/wrap-with-some-room.md) - [Wrap With Some Room](vim/wrap-with-some-room.md)
## Webpack
- [Use A Specific Config File](webpack/use-a-specific-config-file.md)
## Usage ## Usage
The `.vimrc` file for this project contains a function `CountTILs` that can The `.vimrc` file for this project contains a function `CountTILs` that can

View File

@@ -0,0 +1,12 @@
# Use A Specific Config File
When running `webpack`, the default config file that it looks for is
`webpack.config.js`. If you have a project that uses different webpack
config files for different environments, you will need to specify which
config file webpack should use. The `--config` flag can be used with
`webpack` to specify that file. For instance, if you want to use your
production webpack config, run a command like the following:
```
$ webpack --config webpack.config.production.js
```