jvandemo / generator-angular2-library

Yeoman generator to create an Angular library
MIT License
752 stars 122 forks source link

Issue - SVG Asset folder loading #233

Open domeesposito opened 7 years ago

domeesposito commented 7 years ago

Hi, i'm using the generator with ng-lightning library and testing it with "npm run playground". After some changes everthing works fine but now the "ng-lightning" can't open the SVG file stored in the asset folder.
I've already tried to change the package.json with the following:

"build": "gulp build && npm run build:copy",
"build:copy": "cp -R asset dist/asset",

but the /dist/asset folder can't be loaded by playground app.

Thks, D

laurent1 commented 7 years ago

I am not familiar with what you are using, but to make the assets available from the dist folder to your application, alter the .angular-cli.json file using glob as shown below: { "apps": [ { "assets": [ { "glob": "*", "input": "../node_modules/YOUR-PACKAGE-NAME/assets/", "output": "./your-app-assets-folder/" } ] } ] }