diff --git a/lib/builder/webpack/base.config.js b/lib/builder/webpack/base.config.js index 5188e92063..4de888f20b 100644 --- a/lib/builder/webpack/base.config.js +++ b/lib/builder/webpack/base.config.js @@ -106,7 +106,9 @@ export default function webpackBaseConfig(name) { } // Add timefix-plugin before others plugins - config.plugins.unshift(new TimeFixPlugin()) + if (this.options.dev) { + config.plugins.unshift(new TimeFixPlugin()) + } // CSS extraction const extractCSS = this.options.build.extractCSS