Developent error fix, bot will take care of rest (#5121)

Fixes error of missing css file while running in development mode. Might need to merge this in to development branch
This commit is contained in:
Karolis
2018-08-11 13:48:44 +03:00
committed by Erki
parent 33983cb475
commit 1e34823d81
3 changed files with 141 additions and 864 deletions

View File

@@ -42,16 +42,14 @@ module.exports = {
.end()
config.plugins
.delete("html")
.delete("preload")
.delete("prefetch")
.delete("hmr")
.delete("html")
.delete("preload")
.delete("prefetch")
.delete("hmr")
config.when(process.env.NODE_ENV === 'production', config => {
config.plugin('extract-css')
.tap(args => {
args[0].filename = '[name].css'
})
});
config.plugin('extract-css')
.tap(args => {
args[0].filename = '[name].css'
})
}
}