-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
Hi, I've been getting a parse syntax error while trying to make a production build of Vue Storefront 2 Magento theme project.
The error specifically occurs when trying to parse something like calc(var(--my-var) * -1);
e.g.
:root {
--my-var: 12px;
}
.my-class {
margin: 0 calc(var(--my-var) * -1) 0 0;
}By just changing the order of the terms in the calc statement it works correctly;
e.g.
:root {
--my-var: 12px;
}
.my-class {
margin: 0 calc(-1 * var(--my-var)) 0 0;
}Environment
- macos
v11.6 - node
v14.16.1 - npm
v6.14.12 - yarn
v1.22.10 - vuestorefront/template-magento
v1.0.0-rc.3 - postcss
v7.0.32
Reproduction steps
$ npx @vue-storefront/cli init- Select the
Magento 2 (beta)integration option - Copy the
.env.exampleas.envand update the Magento integration URLs (MAGENTO_GRAPHQL,MAGENTO_EXTERNAL_CHECKOUT_URL) $ yarn install$ yarn dev(everything works in dev mode)$ yarn build(build fails with the postcss errors)
bloodf, AdamPawlinski, rezgar, arturs-buls, LenaVladi and 2 more
Metadata
Metadata
Assignees
Labels
No labels