mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(webpack): font-family hex issue (#7763)
This commit is contained in:
parent
6af76334c5
commit
4f27cdded8
@ -79,7 +79,13 @@ export default class PostcssConfig {
|
||||
|
||||
// https://github.com/csstools/postcss-preset-env
|
||||
'postcss-preset-env': this.preset || {},
|
||||
cssnano: dev ? false : { preset: 'default' }
|
||||
cssnano: dev ? false : {
|
||||
preset: ['default', {
|
||||
// Keep quotes in font values to prevent from HEX conversion
|
||||
// https://github.com/nuxt/nuxt.js/issues/6306
|
||||
minifyFontValues: { removeQuotes: false }
|
||||
}]
|
||||
}
|
||||
},
|
||||
// Array, String or Function
|
||||
order: 'presetEnvAndCssnanoLast'
|
||||
|
Loading…
Reference in New Issue
Block a user