mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 15:18:01 +00:00
Add Use A Specific Config File as a webpack til
This commit is contained in:
12
webpack/use-a-specific-config-file.md
Normal file
12
webpack/use-a-specific-config-file.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user