-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Description
After updating to 8.0.1 this morning color() functions via postcss-cssnext began failing to compile if they included a var() as the color reference. Rolling back to postcss-import@<8.0.0 fixed the compiling issue.
postcss.config.json
{
"input": "./src/css/main.css",
"output": "./compiled/css/bundle.min.css",
"use": [ "postcss-import", "postcss-cssnext", "css-mqpacker", "cssnano" ],
"local-plugins": true,
"cssnano": {
"discardComments": {
"removeAll": true
}
}
}package.json
"devDependencies": {
"css-mqpacker": "latest",
"cssnano": "latest",
"postcss-cli": "latest",
"postcss-cssnext": "latest",
"postcss-import": "<8.0.0"
},Error when using v8.0.1
postcss --config postcss.config.json
{ [Error: /Users/jonwolfe/repos/hopspot/src/css/base/_buttons.css:53:3: Unable to parse color from string "var(--purple)"]
originalMessage: 'Unable to parse color from string "var(--purple)"',
fileName: '/Users/jonwolfe/repos/hopspot/src/css/base/_buttons.css',
lineNumber: 53,
columnNumber: 3 }
child_process.js:507
throw err;
^
buttons.css (lines 52-54)
&:active {
background-color: color(var(--purple) blackness(+10%)) !important;
}Metadata
Metadata
Assignees
Labels
No labels