fix(plugin-logo): Use default import for JSON
This commit is contained in:
parent
3ead2ffc79
commit
01d303db00
1 changed files with 4 additions and 4 deletions
|
@ -1,13 +1,13 @@
|
|||
import logo from './logo'
|
||||
import { name, version } from '../package.json'
|
||||
import pkg from '../package.json'
|
||||
|
||||
export default {
|
||||
name: name,
|
||||
version: version,
|
||||
name: pkg.name,
|
||||
version: pkg.version,
|
||||
hooks: {
|
||||
preRender: (svg) => {
|
||||
if (svg.attributes.get('freesewing:plugin-logo') === false) {
|
||||
svg.attributes.set('freesewing:plugin-logo', version)
|
||||
svg.attributes.set('freesewing:plugin-logo', pkg.version)
|
||||
svg.defs += logo
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue