Joined February 2012
·
Posted to
Customize Bootstrap within MEAN.JS
over 1 year
ago
Another HUGE problem is that public/application.js file, who holds AngularJS initialization code and which is created by MeanJS, gets overwritten by ngAnnotate task. This prevents angular from properly initializing!
Solution is:
- move code from application.js a new file: public/angular-bootstrap.js;
- in config/env/all.js, change (in "assets.js" path) 'public.application.js' to 'public/angular-bootstrap.js'
Posted to
Customize Bootstrap within MEAN.JS
over 1 year
ago
There is a problem with source mapping, i.e. it gives 404 - found because in application.min.css there is this URL:
/*# sourceMappingURL=public/application.min.css.map */
To fix this, add a configuration to "less.development.options" in "grunt.initConfig":
sourceMapURL: 'application.min.css.map'
This should fix the 404 error
Achievements
47 Karma
0 Total ProTip Views
Komodo Dragon 3
Have at least three original repos where Java is the dominant language
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Komodo Dragon
Have at least one original repo where Java is the dominant language
Last one... I hope!
There is a problem if running in production, i.e.:
TypeError: Cannot call method 'concat' of undefined
at /config/config.js:76
This is because we removed "assets.lib.css" and "assets.css" from production.js
To fix this we need to modify config/config.js:
must be changed to:
So undefined properties are kept.