我正在使用带有mini-css-extract-plugin
和rtl-webpack-plugin
的webpack4。 Webpack引导程序通过runtimeChunk: 'single'
选项提取到runtime.js。 mini-css-extract-plugin
将css拆分为多个块,rtl-webpack-plugin
添加_chunkname_.rtl.css
个块。使用阿拉伯语语言环境我想加载rtl
css-chunks而不是原始。在runtime.js
// mini-css-extract-plugin CSS loading
var cssChunks = {"0":1,"2":1,"3":1,"9":1 ... }
...
var href = "" + chunkId + "." + "65d2905c76ffb2f27599" + ".css";
我希望它是:
var href = "" + chunkId + "." + "65d2905c76ffb2f27599" + ".rtl.css";