mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
521c3778bd
* fix: style module with extractCSS not work well * test: improve extract css test * fix: exract css name
26 lines
350 B
JavaScript
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'
|
|
]
|
|
}
|