about summary refs log tree commit diff
path: root/config/webpack/rules/mark.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/webpack/rules/mark.js')
-rw-r--r--config/webpack/rules/mark.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/webpack/rules/mark.js b/config/webpack/rules/mark.js
new file mode 100644
index 000000000..e62a526b0
--- /dev/null
+++ b/config/webpack/rules/mark.js
@@ -0,0 +1,8 @@
+if (process.env.NODE_ENV === 'production') {
+  module.exports = {};
+} else {
+  module.exports = {
+    test: /\.js$/,
+    loader: 'mark-loader',
+  };
+}