This repository was archived by the owner on Dec 21, 2021. It is now read-only.
This repository was archived by the owner on Dec 21, 2021. It is now read-only.
Unknow word when using postcss mixin plugin with postcss-env-function #12
Closed
Description
Hello,
I have an issue when I'm using postcss-env-function with postcss-mixin
In my postcss.config.js I have :
require('postcss-import'), require('tailwindcss'), require('autoprefixer'), require('postcss-mixins'), require('cssnano'), require('postcss-nested'), postcssEnvFunction({ importFrom: './css-env.js', }),
And I also have a mixin file with for example :
@define-mixin lines $lines { display: -webkit-box; -webkit-line-clamp: $lines; -webkit-box-orient: vertical; overflow: hidden; }
And when I run postcss I have this error :
`CssSyntaxError: postcss-env-fn: :1:7: Unknown word
1 | lines $lines
| ^
`
When I removed postcss-env-function I don't have this error.
Any idea how I can resolve this issue ?
Thanks !
Metadata
Metadata
Assignees
Labels
No labels