about summary refs log tree commit diff
path: root/config/webpack
diff options
context:
space:
mode:
authorNolan Lawson <nolan@nolanlawson.com>2017-05-25 05:09:55 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-05-25 14:09:55 +0200
commit2469fd1cdcbb3778878a33a7879d5f1fa563c476 (patch)
tree2ed13bc82856348039c7efa090a52ba0c28e6ce3 /config/webpack
parent531c1bb245b01eb78e142da92ca2f3d46c261579 (diff)
Add improved performance marks for development mode (#3297)
Diffstat (limited to 'config/webpack')
-rw-r--r--config/webpack/loaders/mark.js8
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',
+  };
+}