This repository has been archived by the owner on Feb 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
Exported files are invalid #195
Comments
I have the same bug |
I've also seen this bug using a Stencil + PostCSS setup. |
I have the same issue. In my case, in SOME situations, the file look like this:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Background
Hi, first of all thanks for the library, has proven very helpful with rectifying some IE11 issues related to css variables taken from node-sass parsed sass files. Unfortunately, since we have implemented code splitting based on routes it has stopped working! Nightmare, as essentially each route is missing the global variables 🤷♂
So, I am currently experimenting with various things and have found if I export the custom properties to a file using
exportTo
, then run it again with after importing that file usingimportFrom
it works! I have had to modify the code of the library locally though owing to the below issue, and this feels very hacky, so I am creating this issue to couple with an incoming PR.Issue
Integrating this library into
create-react-app
viacraco
using config (nothing fancy):We have 7 routes or so, and logging out the export function it appears (maybe coincidentally) to do a write per route to that one same
postcssOutput.js
, where some of the content sizes are 0. Ultimately, for some reason, this ends up with the file getting messed up (for each of the 4 file types).Example of expected output:
Example of actual output:
The text was updated successfully, but these errors were encountered: