Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chemzqm/postcss-baseurl
postcss plugin for add baseurl to url assets
https://github.com/chemzqm/postcss-baseurl
Last synced: about 1 month ago
JSON representation
postcss plugin for add baseurl to url assets
- Host: GitHub
- URL: https://github.com/chemzqm/postcss-baseurl
- Owner: chemzqm
- License: mit
- Created: 2017-08-19T07:16:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-19T10:53:49.000Z (over 7 years ago)
- Last Synced: 2024-05-27T12:40:07.305Z (7 months ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# PostCSS Baseurl [![Build Status][ci-img]][ci]
[PostCSS] plugin for add baseurl to absolute url assets.
[PostCSS]: https://github.com/postcss/postcss
[ci-img]: https://travis-ci.org/chemzqm/postcss-baseurl.svg
[ci]: https://travis-ci.org/chemzqm/postcss-baseurl```css
.foo {
background: url('/image.png')
}
``````css
.foo {
background: url('/mobile/image.png')
}
```## Usage
```js
postcss([
require('postcss-baseurl')({
base: '/mobile'
})
])
```See [PostCSS] docs for examples for your environment.