Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BryanCrotaz opened this issue Oct 15, 2018 · 3 comments
Open

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

BryanCrotaz opened this issue Oct 15, 2018 · 3 comments
Labels

Comments

@BryanCrotaz
Copy link

BryanCrotaz commented Oct 15, 2018

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.

@oliverlangan
Copy link

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

@aravinth-r-7867
Copy link

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

@segoja
Copy link

segoja commented May 11, 2020

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

};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants