Fix: only use TimeFixPlugin in dev mode

This commit is contained in:
EGOIST 2017-12-06 10:56:29 +08:00 committed by Pooya Parsa
parent f4bf1dc012
commit 65d5fcd91c

View File

@ -106,7 +106,9 @@ export default function webpackBaseConfig(name) {
} }
// Add timefix-plugin before others plugins // Add timefix-plugin before others plugins
config.plugins.unshift(new TimeFixPlugin()) if (this.options.dev) {
config.plugins.unshift(new TimeFixPlugin())
}
// CSS extraction // CSS extraction
const extractCSS = this.options.build.extractCSS const extractCSS = this.options.build.extractCSS