Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

sebastian-software/postcss-simple-url

Repository files navigation

PostCSS Logo

PostCSS Simple URL
Project unmaintained 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).

Copyright

Sebastian Software GmbH Logo

Copyright 2016-2017
Sebastian Software GmbH

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 22