mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-12 05:55:02 +10:00
c00d7a9eef
- added more web manifest rules
19 lines
520 B
JavaScript
19 lines
520 B
JavaScript
exports.onCreateWebpackConfig = ({ stage, actions, getConfig }) => {
|
|
if (stage === 'build-javascript') {
|
|
const config = getConfig();
|
|
const miniCssExtractPlugin = config.plugins.find(
|
|
(plugin) => plugin.constructor.name === 'MiniCssExtractPlugin',
|
|
);
|
|
if (miniCssExtractPlugin) {
|
|
miniCssExtractPlugin.options.ignoreOrder = true;
|
|
}
|
|
actions.replaceWebpackConfig(config);
|
|
}
|
|
|
|
if (stage === 'build-html') {
|
|
actions.setWebpackConfig({
|
|
externals: [/^firebase/],
|
|
});
|
|
}
|
|
};
|