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
I'm going to recap the discussion on the module ember-css-modules repo, but basically I've run into an issue where values when newlines aren't recognised by this plugin, so I ended up writing a preprocessor that stripped newlines from values. Which wasn't that hard as the postcss plugin API exposes the text for an at rule as string.
The example above is from my postcss plugin which expands the media-value into media queries for each case. But just incase I missed something and before I pour to much time into that plugin, I actually made it to be used in conjunction with this plugin & css modules. Are there plans to facilitate responsive values in this plugin, or is there functionality already in this plugin that enables this?
From what I understand there isn't which probably has something to do with messing up the javascript API, which is what my plugin does anyways.
The text was updated successfully, but these errors were encountered:
AKST
changed the title
Values with newlines unrecognised why this plugin
@value's with newlines are not recognised, by this plugin
Nov 12, 2017
AKST
changed the title
@value's with newlines are not recognised, by this plugin
@value's with newlines are not recognised by this plugin
Nov 12, 2017
I'm going to recap the discussion on the module
ember-css-modules
repo, but basically I've run into an issue where values when newlines aren't recognised by this plugin, so I ended up writing a preprocessor that stripped newlines from values. Which wasn't that hard as the postcss plugin API exposes the text for an at rule as string.Anyways is this by design or this a bug?
Examples
I would expect that when you write this
I would have expected this plugin to move the value of
fontSize
into the rulefontDef
and you would have output like this:An aside
The example above is from my postcss plugin which expands the
media-value
into media queries for each case. But just incase I missed something and before I pour to much time into that plugin, I actually made it to be used in conjunction with this plugin & css modules. Are there plans to facilitate responsive values in this plugin, or is there functionality already in this plugin that enables this?From what I understand there isn't which probably has something to do with messing up the javascript API, which is what my plugin does anyways.
The text was updated successfully, but these errors were encountered: