ember-svg-jar
ember-svg-jar copied to clipboard
icons not found when using in addon (v1.2.2)
I have to add
svgJar: {
sourceDirs: ['tests/dummy/public']
}
in order to see icons in the viewer when serving the dummy app. Haven't tried yet in an app that uses this addon.
According to #52 this shouldn't be necessary. What gives?
My addon is namespaced in case that is important.
How would one change configuration options (e.g. adding sourceDirs) in an addon?
I'm too banging my head with this issue. Can we pass config from one addon to another???
I had to figure out this problem too. The index.js file of your ember addon should look like:
/* eslint-env node */
'use strict';
module.exports = {
name: 'your-ember-addon',
options: {
svgJar: {
sourceDirs: [
// In my case I wanted to load the files in a folder inside of the addon folder:
'node_modules/your-ember-addon/mysvgfolder',
]
},
},
};