grunt-cachebuster icon indicating copy to clipboard operation
grunt-cachebuster copied to clipboard

Force UNIX style paths

Open EdBailey opened this issue 11 years ago • 1 comments

I think this is a great plugin but I am unfortunately running it on windows, which means all the paths come out with backslashes instead of forward slashes. This doesn't mesh well with the codebase running on a linux server and trying to join those paths up. I've 'solved' this issue for myself by using a complete function but it would be much nicer/cleaner if there was an option to force forward-slash paths. Any chance of this being added?

Cheers

EdBailey avatar Mar 16 '15 15:03 EdBailey

Hi, thanks for using grunt-cachebuster! I'd recommend running grunt on a CI server as part of your deployment process, in which case your production server would get unix paths but you'd still get Windows paths when running grunt on your local development environment - best of both worlds. Your solution is also fine if you want to avoid using a build server - grunt is just your build tool after all, there's nothing wrong with having a bit of code in your Gruntfile.

Please feel free to submit a pull request if you're keen to see this feature added.

felthy avatar Mar 16 '15 23:03 felthy