mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
cbb77b97e3
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.
15 lines
226 B
JavaScript
15 lines
226 B
JavaScript
module.exports = {
|
|
plugins: [
|
|
require('autoprefixer'),
|
|
require('cssnano')({
|
|
preset: [
|
|
'default',
|
|
{
|
|
normalizeWhitespace: false,
|
|
colormin: false
|
|
}
|
|
]
|
|
})
|
|
]
|
|
}
|