From 2469fd1cdcbb3778878a33a7879d5f1fa563c476 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Thu, 25 May 2017 05:09:55 -0700 Subject: Add improved performance marks for development mode (#3297) --- config/webpack/loaders/mark.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 config/webpack/loaders/mark.js (limited to 'config/webpack') 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', + }; +} -- cgit