Open
Description
Hi there)
I wrote a-webpack-plugin which makes it possible to generate super short css classNames, like .a
.b
... .zz
...
My plugin works with ExtractTextPlugin, and it doesn't with mini-css-extract-plugin
(
The problem is that when I rebuild css modules in a proper order, mini-css-extract-plugin
just drops all css files → no css output at all.
https://github.com/Diokuz/a-webpack-plugin/blob/master/index.js#L158
Any suggestions how to fix that?
My plugin's algorythm is very simple:
- Wait till all css modules are loaded by webpack
- Find them and sort
- Rebuild all css modules in a defined order, so build is deterministic (chunkhash and content is constant for particular git commit).
As I understood from your source, you use childCompiler in loader, which is reused in plugin part. But I still dont get it, why compilation.rebuildModule
not working...
Thanks in advance)