Skip to content

Commit 941121d

Browse files
committed
Update SVG sprite generator
1 parent 2e6ad01 commit 941121d

File tree

3 files changed

+132
-472
lines changed

3 files changed

+132
-472
lines changed

package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack-mpa-next",
3-
"version": "3.11.0",
3+
"version": "3.12.0",
44
"description": "Multi page app setup with webpack",
55
"keywords": [
66
"MPA",
@@ -12,7 +12,7 @@
1212
"Multiple pages application setup",
1313
"Multiple pages application boilerplate"
1414
],
15-
"homepage": "https://atanas.info/projects/webpack-mpa-next.html",
15+
"homepage": "https://atanas.info/portfolio/open-source/webpack-mpa-next",
1616
"bugs": {
1717
"url": "https://github.com/scriptex/webpack-mpa-next/issues",
1818
"email": "[email protected]"
@@ -79,11 +79,10 @@
7979
"postcss-url": "10.1.3",
8080
"postcss-utilities": "0.8.4",
8181
"postcss-watch-folder": "2.0.0",
82-
"spritesh": "1.2.1",
8382
"stylelint": "14.14.1",
8483
"stylelint-config-recommended": "9.0.0",
8584
"stylelint-no-unsupported-browser-features": "6.0.1",
86-
"svgo": "3.0.0",
85+
"svg-symbol-sprite": "1.1.0",
8786
"webpack": "5.74.0",
8887
"webpack-cli": "4.10.0",
8988
"webpack-shell-plugin-next": "2.3.1",

webpack.config.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ const shellScripts = [];
8989
const svgs = readdirSync('./assets/images/svg').filter(svg => svg[0] !== '.');
9090

9191
if (svgs.length) {
92-
shellScripts.push('svgo -f assets/images/svg');
93-
shellScripts.push('spritesh -q -i assets/images/svg -o ./assets/dist/sprite.svg -p svg-');
92+
shellScripts.push('svg-symbol-sprite -i assets/images/svg -o assets/dist/sprite.svg -p svg-');
9493
}
9594

9695
module.exports = (env, argv) => {

0 commit comments

Comments
 (0)