Skip to content

Commit

Permalink
Fix webpack builds for modern versions (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
zerebos authored Mar 27, 2023
1 parent 3cd90da commit b587fd4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
8 changes: 4 additions & 4 deletions webpack.main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
output: {
hashFunction: "xxhash64"
}
module.exports = config => {
delete config.optimization.namedModules;
config.output.hashFunction = "xxhash64";
return config;
};
20 changes: 8 additions & 12 deletions webpack.renderer.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
module.exports = {
module: {
rules: [
{
test: /\.(html|svelte)$/,
use: "svelte-loader"
}
]
},
output: {
hashFunction: "xxhash64"
}
module.exports = config => {
delete config.optimization.namedModules;
config.output.hashFunction = "xxhash64";
config.module.rules.push({
test: /\.(html|svelte)$/,
use: "svelte-loader"
});
return config;
};

0 comments on commit b587fd4

Please sign in to comment.