This repository has been archived by the owner on Mar 26, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): rewrite relative CSS URLs
Fix useminPrepare task to rewrite relative CSS urls First, tell useminPrepare to only 'cssmin' our CSS files (dropping the concat task). See yeoman/grunt-usemin#225. Second, tell cssmin to rewrite relative urls to be relative to our app directory. This is particularly useful for bower install components that have CSS files that reference relative urls. ie. ``` . ├── app │ └── bower_components │ └── component │ ├── images │ │ └── image.png │ └── style.css └── build ``` ``` body { background: url('images/image.png'); } ``` Will have now properly rewrite it's image url to ``` body { background: url('bower_components/component/images/image.png'); } ```
- Loading branch information