IndigoUnited / spoonjs-cli

SpoonJS CLI tool
MIT License
3 stars 1 forks source link

server.js task should add cache busting in dev for imported css's #22

Open satazor opened 11 years ago

satazor commented 11 years ago

A random buster is being added in dev in all requests made by requirejs. The problem is that if a css has a import statement, it will not have the cache buster added. This causes cache issues in dev that should not happen.

This can be solved by having a /*.css handler in the server task for this, adding the cache buster to all the import states found in the css. This way, the server css file would have all the cache busters added.

Other solution is to use require-css also in dev which uses style tags instead of imports, solving this issue automatically.