callumlocke / grunt-cdnify

Grunt plugin for finding and modifying static resource URLs
61 stars 40 forks source link

Add support for JS files. #34

Open killfish opened 8 years ago

killfish commented 8 years ago

I get this error: Warning: Cannot read property 'start' of undefined Use --force to continue. If I try to CDNify my JS files.

Here's my config.

files: [{
  expand: true,
  cwd: './.build',
  src: '**/*.{css,html,js}',
  dest: 'tmp'
}]
XhmikosR commented 8 years ago

Please make a complete test case in a repo so that we can try to reproduce.

benjiwheeler commented 8 years ago

What is currently expected behavior for this? Completely ignoring js file contents?

adddz commented 7 years ago

@callumlocke This is really needed :( I need to cdnify all the URLs inside a js file created by grunt (for angular.js). Please let us know if that's complicated.