Open h0tc0d3 opened 6 years ago
precss({"lookup": { disable: true }})
Not work.
precss: base.css:26:1: Unable to find property @font-family in body
precss: base.css:26:1: Unable to find property @font-color in body
precss: base.css:92:1: Unable to find property @code-color in .loading__wrapper
precss: typography.css:18:1: Unable to find property @header-color in h2
precss: typography.css:18:1: Unable to find property @header-color in h2
precss: typography.css:18:1: Unable to find property @code-color in h2
precss: typography.css:30:1: Unable to find property @sheader-color in h3
precss: typography.css:37:1: Unable to find property @sheader-color in h4
precss: typography.css:44:1: Unable to find property @sheader-color in h5
precss: typography.css:51:1: Unable to find property @sheader-color in h6
Disable plugins in precss not working. https://github.com/simonsmith/postcss-property-lookup/issues/25#issuecomment-363191791 https://github.com/postcss/postcss-nested/issues/70
@doasync I don't use import plugin in precss. I wrote my own import plugin. Read documentation https://github.com/jonathantneal/precss/wiki/Options
All plugins are enabled by default, to disable one, pass disable: true option to plugin namespace.
Earlier the option worked, but after the update stopped working.
Hey @h0tc0d3, did you get around this somehow?
I've ran into the need to disable @import
resolving because I need it to be done by webpack, yet by looking into the source code, there does not seem to a place where disable
would be handled
Hey there, this used to be a feature but was removed in version 3.0. onward.
the current behaviour is an array of options that will get passed down to all plugins.
See: #127
Sadly this doesn´t allow for the option disable
any longer.
I´ve opened a PR to solve this issue: #132. Currently waiting for feedback :)
I was getting the precss could not resolve the variable ___ within ___
error, and I was able to resolve the issue by changing my processing workflow. I'm using PostCSS inside a Gulp task, and my gulp.src
included all my CSS files, including the files which had variables. I changed my gulp.src
to only include my style.css
file, which imports other files which define and make use of various variables, and that resolved the problem.
Code:
And how disable PropertyLookup plugin?