feat: first commit
This commit is contained in:
commit
8b0c05008e
79 changed files with 30897 additions and 0 deletions
20
gatsby-node.js
Normal file
20
gatsby-node.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
exports.onCreateWebpackConfig = ({
|
||||
actions: { replaceWebpackConfig },
|
||||
getConfig
|
||||
}) => {
|
||||
const config = getConfig();
|
||||
|
||||
config.module.rules.push({
|
||||
test: /\.worker\.js$/,
|
||||
use: {
|
||||
loader: "worker-loader",
|
||||
options: {
|
||||
inline: true
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
config.output.globalObject = "this";
|
||||
|
||||
replaceWebpackConfig(config);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue