build - Adding the uri.js bower component breaks my Grunfile.js, which dies thinking the uri.js directory is a file. How to fix? -


the yeoman generated gruntfile.js dies during grunt build with:

running "rev:dist" (rev) task dist/public/app/app.js >> b90d2f58.app.js dist/public/app/vendor.js >> 2deb5480.vendor.js warning: unable read "dist/public/bower_components/uri.js" file (error code: eisdir). used --force, continuing. 

clearly interpreting uri.js component directory file! 1 simple fix rename uri.js component uri_js or similar. rather that, there easy switch add utility hashing know 'uri.js' not file??? tried adding "filter: 'isfile'" every place in gruntfile has *.js pattern, no avail.

anyone has seen this, appreciated. doing grunt build --force. thanks

i discovered 1 can exclude bower_component rename process. key order of files in rev piece dependent on order of selection. modified section of gruntfile.js ... , well.

// renames files browser caching purposes rev: {   dist: {     files: {       src: [         '<%= yeoman.dist %>/public/{,*/}*.js',         '<%= yeoman.dist %>/public/{,*/}*.css',         '<%= yeoman.dist %>/public/assets/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',         '<%= yeoman.dist %>/public/assets/fonts/*',         '!<%= yeoman.dist %>/public/bower_components/uri.js'       ]     }   } 

the crucial addition last piece:

        '!<%= yeoman.dist %>/public/bower_components/uri.js' 

i hope helps else with issue!


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -