You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 21, 2021. It is now read-only.
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 !
The text was updated successfully, but these errors were encountered:
leozero
changed the title
Unknow word with mixin
Unknow word when using postcss mixin plugin with postcss-env-function
May 10, 2021
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
When I removed postcss-env-function I don't have this error.
Any idea how I can resolve this issue ?
Thanks !
The text was updated successfully, but these errors were encountered: