diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-02-10 09:45:42 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-03-04 01:47:38 +0300 |
commit | 02504f2f9c8f0316b9235121f9677a998136bfc4 (patch) | |
tree | b092689eefc25d54aac3d1504b5dd3fda6ebc534 | |
parent | 312137c6a5456e0dfdaaaa0f12ecdc1597286c17 (diff) |
use deterministic module IDs in production and development
-rw-r--r-- | config/webpack.config.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index 13273902b0e..d06f7733945 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -83,6 +83,10 @@ var config = { assets: true }), new webpack.IgnorePlugin(/moment/, /pikaday/), + // use deterministic module ids in all environments + IS_PRODUCTION ? + new webpack.HashedModuleIdsPlugin() : + new webpack.NamedModulesPlugin(), ], resolve: { |