This plugis is a fork of mini-css-extract-plugin but with a support for WebpackRTLPlugin. Namely, it allows to load async CSS files depending of page's current direction. Please check mentioned packages to learn how to use them.
npm install --save-dev mini-css-extract-plugin-with-rtl
Usage
Configuration
webpack.config.js
const MiniCssExtractPlugin = ;const WebpackRTLPlugin = ; moduleexports = plugins: filename: "[name].css" rtlEnabled: true rtlGlobalVar: 'pageDir' // Value should be 'rtl' to activate RTL mode. If not specified, document.dir will be used instead // You must not pass filename option module: rules: test: /\.css$/ use: loader: MiniCssExtractPluginloader "css-loader"