Nuxt/test/fixtures/extract-css/nuxt.config.js
Clark Du 521c3778bd
fix: style module with extractCSS not work well (#4093)
* fix: style module with extractCSS not work well

* test: improve extract css test

* fix: exract css name
2018-10-11 22:53:02 +01:00

26 lines
350 B
JavaScript

export default {
build: {
extractCSS: true,
optimization: {
splitChunks: {
name: true
}
},
postcss: {
preset: {
autoprefixer: {
grid: true
}
}
},
filenames: {
css: () => {
return '[name].css'
}
}
},
css: [
'~/assets/global.css'
]
}