webpack-rtl-plugin
webpack-rtl-plugin copied to clipboard
Plugin works after UglifyJsPlugin
Hi again,
I'm using the WebpackRtlPlugin together with UglifyJsPlugin and in my code I have directives for rtlcss like: /* rtl:begin:ignore */.
The problem is the uglifier works before the WebpackRtlPlugin and removes these comments.
I'm not sure if this is an issue here or in UglifyjsPlugin since I've tried to use the options.comments to tell the uglifier to ignore these comments but it didn't work.. but anyway it seems to me that the .rtl.css should be generated before the uglifier and be added to the asset list.
This issue should be fixed with https://github.com/romainberger/webpack-rtl-plugin/pull/5 (published in version 1.5.0)