diff options
author | Nolan Lawson <nolan@nolanlawson.com> | 2017-05-25 05:09:55 -0700 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-25 14:09:55 +0200 |
commit | 2469fd1cdcbb3778878a33a7879d5f1fa563c476 (patch) | |
tree | 2ed13bc82856348039c7efa090a52ba0c28e6ce3 /config/webpack/loaders | |
parent | 531c1bb245b01eb78e142da92ca2f3d46c261579 (diff) |
Add improved performance marks for development mode (#3297)
Diffstat (limited to 'config/webpack/loaders')
-rw-r--r-- | config/webpack/loaders/mark.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/webpack/loaders/mark.js b/config/webpack/loaders/mark.js new file mode 100644 index 000000000..e62a526b0 --- /dev/null +++ b/config/webpack/loaders/mark.js @@ -0,0 +1,8 @@ +if (process.env.NODE_ENV === 'production') { + module.exports = {}; +} else { + module.exports = { + test: /\.js$/, + loader: 'mark-loader', + }; +} |