postcss-simple-url

PostCSS plugin to rebase urls from imports to make them work nicely with Webpack v2.

This package is no longer maintained. Please consider alternatives.
Last updated 10 years ago by swernerx .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install postcss-simple-url 
SYNC missed versions from official npm registry.
PostCSS Logo

PostCSS Simple URL
Downloads Downloads Build Status Unix Build Status Windows Dependencies

PostCSS plugin for loading/including other files (transform @import rules by inlining content) and quering/referring assets (referred in url() functions).

Installation

$ npm install postcss-simple-url

Usage

// dependencies
var fs = require("fs")
var postcss = require("postcss")
var url = require("postcss-simple-url")

// css to be processed
var css = fs.readFileSync("input.css", "utf8")

// process css
var output = postcss()
  .use(url())
  .process(css, {
    from: "src/stylesheet/index.css",
    to: "dist/index.css"
  })
  .css

Checkout tests for examples.

Contributing

  • Pull requests and Stars are always welcome.
  • For bugs and feature requests, please create an issue.
  • Pull requests must be accompanied by passing automated tests ($ npm test).

License

Copyright

Sebastian Software GmbH Logo

Copyright 2016-2017
Sebastian Software GmbH

Current Tags

  • 0.1.6                                ...           latest (10 years ago)

6 Versions

  • 0.1.6 [deprecated]           ...           10 years ago
  • 0.1.5 [deprecated]           ...           10 years ago
  • 0.1.4 [deprecated]           ...           10 years ago
  • 0.1.3 [deprecated]           ...           10 years ago
  • 0.1.2 [deprecated]           ...           10 years ago
  • 0.1.1 [deprecated]           ...           10 years ago
Maintainers (1)
Downloads
Total 8
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 6
Last Month 0
Dependencies (1)
Dev Dependencies (3)
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE