Where should I look/hook to generate an rtlcss version of css files that are written to the entry HTML? #61
-
There is an rtlcss webpack plugin, https://github.com/wix-incubator/rtlcss-webpack-plugin/tree/master, that I can add as a plugin and it will generate a Right-To-Left version of any CSS files that pass through. It works great, but it obviously doesn't hook into html-bundler-webpack-plugin, so the output HTML doesn't end up with the "rtl" stylesheet. What I'm hoping to do is bundle HTML like this:
into this:
is this possible with the html-bundler-webpack-plugin hooks? If so, which hooks should I look into? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @davidmurdoch, thank you for the very interesting question. I have added as an example the test case hook-beforeEmit-rtlcss. This is the working demo plugin, see webpack.config.js, where is implemented the functionality of the rtlcss-webpack-plugin using the Bundler Plugin hook - beforeEmit. |
Beta Was this translation helpful? Give feedback.
Hello @davidmurdoch,
thank you for the very interesting question.
I have added as an example the test case hook-beforeEmit-rtlcss.
This is the working demo plugin, see webpack.config.js, where is implemented the functionality of the rtlcss-webpack-plugin using the Bundler Plugin hook - beforeEmit.