mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
Fix: only use TimeFixPlugin in dev mode
This commit is contained in:
parent
f4bf1dc012
commit
65d5fcd91c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user