mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-30 03:51:25 -08:00
fix: solve postcss-values-parser Syntax Error problem
When using Rollup for balloon.css, `calc(var(--balloon-move) * -1))` will become like this `calc(var(--balloon-move)*-1))`. The space was removed. This will lead to postcss-values-parser Syntax Error, such as webpacker of Ruby on Rails. Ref https://github.com/postcss/postcss-custom-properties/issues/161#issuecomment-479025016
This commit is contained in:
1 file changed
+6
-1
@@ -47,7 +47,12 @@ module.exports = function creatRollupConfig(projectPath) {
|
|||||||
plugins: [
|
plugins: [
|
||||||
autoprefixer(),
|
autoprefixer(),
|
||||||
cssnano({
|
cssnano({
|
||||||
preset: 'default',
|
preset: [
|
||||||
|
'default',
|
||||||
|
{
|
||||||
|
calc: false
|
||||||
|
}
|
||||||
|
],
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
sourceMap: isProd ? false : true,
|
sourceMap: isProd ? false : true,
|
||||||
|
|||||||
Reference in new issue
Block a user