curist / grunt-bower

grunt task to copy bower installed packages to other folder(s)
MIT License
93 stars 27 forks source link

Replace everything before and expanded_dir to get file name #42

Closed cjsewell closed 9 years ago

cjsewell commented 9 years ago

I had an issue in Windows where src_path contained the full path to the source file, resulting in an incorrect file_name. eg src_path was C:/xampp/htdocs/myproject/bower_components/jquery/dist/jquery.js file_name was C:/xampp/htdocs/myproject//dist/jquery.js

Replacing everything before expanded_dir fixed the issue...... not sure if that's the best place to do it

artch commented 9 years ago

This case is better handled in https://github.com/curist/grunt-bower/pull/46