How to fix bower ECMDERR

In case you might encounter the same issue…It turns out my machine behind firewall, that won’t able to access git://github.com/jquery/jquery.git Link: Unable to Connect to GitHub.com For Cloning The solution without changing the firewall: git config –global url.”https://”.insteadOf git:// Credit to @bnguyen82 from Unable to Connect to GitHub.com For Cloning and @Sindre Sorhus from Bower … Read more

Fontawesome is not working when project is built with grunt

I had the same problem. The following code solved my problem. copy: { dist: { files: [{ expand: true, dot: true, cwd: ‘<%= config.app %>’, dest: ‘<%= config.dist %>’, src: [ ‘*.{ico,png,txt}’, ‘.htaccess’, ‘images/{,*/}*.webp’, ‘{,*/}*.html’, ‘styles/fonts/{,*/}*.*’ ] },{ expand: true, dot: true, cwd: ‘bower_components/bootstrap/dist’, // change this for font-awesome src: [‘fonts/*.*’], dest: ‘<%= config.dist %>’ … Read more

How to include scripts automatically in a yeoman/grunt project?

I used grunt-include-source Install it: npm install grunt-include-source –save-dev In Gruntfile: Load it before initConfig: module.exports = function (grunt) { … grunt.loadNpmTasks(‘grunt-include-source’); Configure includeSource itself in initConfig: grunt.initConfig({ …, includeSource: { options: { basePath: ‘app’, baseUrl: “https://stackoverflow.com/”, }, server: { files: { ‘.tmp/index.html’: ‘<%= yeoman.app %>/index.html’ } }, dist: { files: { ‘<%= yeoman.dist %>/index.html’: … Read more