mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-25 01:15:26 +10:00
- update dependencies
- upgrade gatsby v2 to v3 - update functions
This commit is contained in:
+23
-10
@@ -1,15 +1,28 @@
|
||||
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);
|
||||
exports.onCreateWebpackConfig = ({ stage, actions, plugins, getConfig }) => {
|
||||
actions.setWebpackConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
path: require.resolve('path-browserify'),
|
||||
},
|
||||
fallback: {
|
||||
fs: false,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
if (stage === 'build-javascript' || stage === 'develop') {
|
||||
actions.setWebpackConfig({
|
||||
plugins: [plugins.provide({ process: 'process/browser' })],
|
||||
});
|
||||
}
|
||||
|
||||
const config = getConfig();
|
||||
const miniCssExtractPlugin = config.plugins.find(
|
||||
(plugin) => plugin.constructor.name === 'MiniCssExtractPlugin',
|
||||
);
|
||||
miniCssExtractPlugin && (miniCssExtractPlugin.options.ignoreOrder = true);
|
||||
actions.replaceWebpackConfig(config);
|
||||
|
||||
if (stage === 'build-html') {
|
||||
actions.setWebpackConfig({
|
||||
externals: [/^firebase/],
|
||||
|
||||
Reference in New Issue
Block a user