From 318097634aa7587b969796f51696bb7e27fe254c Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Fri, 18 Mar 2016 15:56:53 -0500 Subject: [PATCH] Add Use A Specific Config File as a webpack til --- README.md | 5 +++++ webpack/use-a-specific-config-file.md | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 webpack/use-a-specific-config-file.md diff --git a/README.md b/README.md index 72fd2e3..4335086 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ _367 TILs and counting..._ * [tmux](#tmux) * [Unix](#unix) * [Vim](#vim) +* [Webpack](#webpack) --- @@ -443,6 +444,10 @@ _367 TILs and counting..._ - [Whole Line Auto-Completion](vim/whole-line-auto-completion.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 The `.vimrc` file for this project contains a function `CountTILs` that can diff --git a/webpack/use-a-specific-config-file.md b/webpack/use-a-specific-config-file.md new file mode 100644 index 0000000..d7a714d --- /dev/null +++ b/webpack/use-a-specific-config-file.md @@ -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 +```