ember-svg-jar icon indicating copy to clipboard operation
ember-svg-jar copied to clipboard

icons not found when using in addon (v1.2.2)

Open BryanCrotaz opened this issue 6 years ago • 3 comments

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.

BryanCrotaz avatar Oct 15 '18 13:10 BryanCrotaz

How would one change configuration options (e.g. adding sourceDirs) in an addon?

oliverlangan avatar Jan 09 '20 22:01 oliverlangan

I'm too banging my head with this issue. Can we pass config from one addon to another???

aravinth-r-7867 avatar Mar 31 '20 18:03 aravinth-r-7867

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',
      ]
    },
  },

};

segoja avatar May 11 '20 15:05 segoja