Skip to content

Commit

Permalink
fix(webpack): font-family hex issue (#7763)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Jul 26, 2020
1 parent 6af7633 commit 4f27cdd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/webpack/src/utils/postcss.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 4f27cdd

Please sign in to comment.