Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aioutecism/sass-file-url
Sass plugin - "file-url" with cache busting
https://github.com/aioutecism/sass-file-url
Last synced: 23 days ago
JSON representation
Sass plugin - "file-url" with cache busting
- Host: GitHub
- URL: https://github.com/aioutecism/sass-file-url
- Owner: aioutecism
- License: mit
- Created: 2014-02-15T07:31:00.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-15T07:39:35.000Z (almost 11 years ago)
- Last Synced: 2023-04-04T14:00:43.940Z (over 1 year ago)
- Language: Ruby
- Size: 129 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# file-url for Sass
A [Sass](https://github.com/nex3/sass) plugin which generate url with cache busting.
Something like:
```
url(path/to/file?cacheBusting)
```### Usage
#### Command line
```shell
sass -r ./relative/path/to/file-url.rb src.sass dist.css
```#### or Gruntfile
```javascript
module.exports = function (grunt) {
grunt.initConfig({
...
sass : {
dist : {
options : {
require : [ './relative/path/to/file-url.rb' ]
}
...
}
}
});
...
}
```#### in *.sass
Use it like this (pay attention at the path)
```sass
body
background: file-url('path/related/to/master/sass/file')
```
which outputs
```css
body {
background: url('path/related/to/master/sass/file?1390980540');
}
```