mirror of
https://github.com/fullstack-cash/fullstack-gatsby-theme-bch-wallet.git
synced 2026-09-23 01:32:04 -07:00
21 lines
499 B
JavaScript
21 lines
499 B
JavaScript
|
|
|
|
exports.onCreateWebpackConfig = ({ stage, actions, getConfig }) => {
|
|
actions.setWebpackConfig({
|
|
node: {
|
|
fs: "empty",
|
|
},
|
|
})
|
|
//Ignore css order
|
|
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)
|
|
}
|
|
}
|