1
0
Fork 0

sparkles: Switched to attribute.set() for version info

This commit is contained in:
Joost De Cock 2018-12-08 17:38:31 +01:00
parent 695fb5ef77
commit a407459412
2 changed files with 2 additions and 1 deletions

View file

@ -33,6 +33,7 @@
"browserbuild": "rollup -c rollup.js --file dist/browser.js --format iife -m true --name freesewing.plugins.grainline",
"nodebuild": "rollup -c rollup.js --file dist/index.js --format cjs -m true",
"modulebuild": "rollup -c rollup.js --file dist/index.mjs --format es -m true",
"rebuild": "npm run nodebuild && npm run modulebuild",
"build": "npm run clean && npm run browserbuild && npm run nodebuild && npm run modulebuild"
},
"husky": {

View file

@ -7,7 +7,7 @@ export default {
hooks: {
preRender: function(svg) {
svg.defs += markers;
svg.attributes.add('freesewing:plugin-grainline', version);
svg.attributes.set('freesewing:plugin-grainline', version);
}
},
macros: {