javascript - Ember 1.13.1 vendor/assets not loading -


edit

problem appears having brocfile.js instead of migrating ember-cli-build.js. article clears up: https://github.com/ember-cli/ember-cli/blob/master/transition.md.

i'm following along ember-cli 101 tutorial , supposed assets picnic , fontello assets aren't getting recognized/loaded if go http://localhost:4200/assets/vendor.css. in fact, if go there, ember console doesn't detect ember app @ all.

i believe might have content security policy changes made make not throw violation begin with:

config/environment.js:

contentsecuritypolicy: {   'default-src': "'none'",   'script-src': "'self' 'unsafe-inline' 'unsafe-eval'",   'font-src': "'self'",   'connect-src': "'self'",   'img-src': "'self'",   'style-src': "'self' 'unsafe-inline'",   'frame-src': "'none'" } 

brocfile.js:

var emberapp = require('ember-cli/lib/broccoli/ember-app');  var app = new emberapp({});  app.import('vendor/fontello/fontello.css'); app.import('vendor/fontello/font/fontello.ttf', {   destdir: 'assets/fonts' }); app.import('vendor/fontello/font/fontello.eot', {   destdir: 'assets/fonts' }); app.import('vendor/fontello/font/fontello.svg', {   destdir: 'assets/fonts' }); app.import('vendor/fontello/font/fontello.woff', {   destdir: 'assets/fonts' });  app.import('bower_components/picnic/releases/plugins.min.css'); app.import('bower_components/picnic/releases/picnic.min.css');  module.exports = app.totree();   bower.json includes:       "picnic": "~3.3.1" 

my directory structure is:

brocfile.js bower_components     --> picnic  bower.json vendor    --> fontello             --> font                    --> fontello.eot / .svg .ttf .woff  

the source code tutorial here: https://github.com/abuiles/borrowers.

yes, installed via bower restarted server.

its ember-cli 1.13.0 issue, in 0.2.7 still works. open issue: https://github.com/ember-cli/ember-cli/issues/4446


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -