postcss-env-function icon indicating copy to clipboard operation
postcss-env-function copied to clipboard

Unknow word when using postcss mixin plugin with postcss-env-function

Open leozero opened this issue 5 years ago • 2 comments

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 !

leozero avatar May 10 '21 14:05 leozero

@leozero could you try this with latest versions?

Antonio-Laguna avatar Nov 17 '21 20:11 Antonio-Laguna

Hi @leozero we are archiving this repo as this plugin has moved to @csstools/postcss-plugins

We hope this issue has already be resolved in the latest patches. If it's not, can you open a new issue here?

romainmenke avatar Dec 16 '21 12:12 romainmenke