mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-12 05:55:02 +10:00
15 lines
472 B
JavaScript
15 lines
472 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);
|
|
}
|
|
};
|