mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-09 20:44:53 +10:00
13 lines
461 B
JavaScript
13 lines
461 B
JavaScript
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
|
|
|
exports.onCreateWebpackConfig = ({ actions, stage, getConfig }) => {
|
|
if (stage === "build-javascript") {
|
|
const config = getConfig();
|
|
const index = config.plugins.findIndex((plugin) => {
|
|
return plugin.constructor.name === "MiniCssExtractPlugin";
|
|
});
|
|
config.plugins[index] = new MiniCssExtractPlugin({ ignoreOrder: true });
|
|
actions.replaceWebpackConfig(config);
|
|
}
|
|
};
|