Closed remoe closed 9 years ago
This module is just a wrapper for rework. It does post-processing as it would be done in node.js. Please try if it works with the plain node.js setup.
Just to make it clear: the file ~basscss/css/basscss.css
exist and served by webpack without any error, right?
yes, it has no errors. I used the latest WebPack. But the CSS content that goes through your rework plugin has not resolved @imports
in it.
The imports should be resolved with WebPack module system.
I think your plugin works only with a completely resolved CSS without any @imports
, right?
Yes, that's true. I think the css-loader resolves the @imports
but it's too late obviously...
And what if you change the order of the css-loader
and rework-loader
in your config?
This also looks like your case: https://github.com/webpack/css-loader#importing-and-chained-loaders
thanks, but I've tried this also and has no luck with rework. I didn't found a solution with rework-vars and I was switched temporary to atomify. But I'm really interested in a solution with webPack.
Please check this loader out: https://github.com/aaronj1335/rework-webpack-loader
I think it should solve you problem.
thanks for your info! I've also tried this, but this does also not worked on my setup. But I try it on a simpler setup to find out what the problem is.
When I try to use something like that:
and the css file has something like that:
It doesn't work with vars that are created in basscss.css. Do you have a working sample of it?