Skip to content

Commit

Permalink
Update SVG sprite generator
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptex committed Nov 7, 2022
1 parent 2e6ad01 commit 941121d
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 472 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webpack-mpa-next",
"version": "3.11.0",
"version": "3.12.0",
"description": "Multi page app setup with webpack",
"keywords": [
"MPA",
Expand All @@ -12,7 +12,7 @@
"Multiple pages application setup",
"Multiple pages application boilerplate"
],
"homepage": "https://atanas.info/projects/webpack-mpa-next.html",
"homepage": "https://atanas.info/portfolio/open-source/webpack-mpa-next",
"bugs": {
"url": "https://github.com/scriptex/webpack-mpa-next/issues",
"email": "[email protected]"
Expand Down Expand Up @@ -79,11 +79,10 @@
"postcss-url": "10.1.3",
"postcss-utilities": "0.8.4",
"postcss-watch-folder": "2.0.0",
"spritesh": "1.2.1",
"stylelint": "14.14.1",
"stylelint-config-recommended": "9.0.0",
"stylelint-no-unsupported-browser-features": "6.0.1",
"svgo": "3.0.0",
"svg-symbol-sprite": "1.1.0",
"webpack": "5.74.0",
"webpack-cli": "4.10.0",
"webpack-shell-plugin-next": "2.3.1",
Expand Down
3 changes: 1 addition & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ const shellScripts = [];
const svgs = readdirSync('./assets/images/svg').filter(svg => svg[0] !== '.');

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

module.exports = (env, argv) => {
Expand Down
Loading

0 comments on commit 941121d

Please sign in to comment.