Skip to content

Commit

Permalink
tuning svg optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Jun 15, 2024
1 parent 150d2e4 commit aaa7a24
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
new HtmlBundlerPlugin({
entry: 'src/views/',
test: /\.(html|hbs)$/,
filename: ({filename, chunk: {name}}) => {
filename: ({chunk: {name}}) => {
let segs = name.split(path.sep);
if (segs[0] === 'index') {
return 'index.html';
Expand Down Expand Up @@ -96,18 +96,17 @@ module.exports = {
params: {
overrides: {
removeViewBox: false,
addAttributesToSVGElement: {
params: {
attributes: [{xmlns: "http://www.w3.org/2000/svg"}],
},
},
},
},
},
{
name: 'addAttributesToSVGElement',
params: {attributes: [{xmlns: "http://www.w3.org/2000/svg"}]}
},
],
},
}
}
},
},
],
generator: [
{
Expand Down

0 comments on commit aaa7a24

Please sign in to comment.