sparkles: Switched to attribute.set() for version info
This commit is contained in:
parent
695fb5ef77
commit
a407459412
2 changed files with 2 additions and 1 deletions
|
@ -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": {
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue