naive-ui/postcss.config.js
07akioni cbb77b97e3 fix: set postcss.options.cssnano.colormin to false
Since on development, the sass file will pass colormin, its color may be transfrom by cssnano. In that case, some colors in the color scheme won't be accessible by ui itself. But it can be turned on in production mode, because at that time the color scheme file won't pass the sass loader but a naive rollup plugin, the color won't be changed anymore.
2020-05-30 16:43:28 +08:00

15 lines
226 B
JavaScript

module.exports = {
plugins: [
require('autoprefixer'),
require('cssnano')({
preset: [
'default',
{
normalizeWhitespace: false,
colormin: false
}
]
})
]
}