mincer-cssurl

css url fixer for Mincer

Usage no npm install needed!

<script type="module">
  import mincerCssurl from 'https://cdn.skypack.dev/mincer-cssurl';
</script>

README

Mincer Css Url

Build Status

fix url in css for Mincer.

background: url('select2.png') right top no-repeat;

will be render to

background: url('/assets/select2/select2-1ea55de27688da0a7b20119a50b6dff3.png') right top no-repeat;

Installation

Install from npm registry:

$ npm install mincer-cssurl

Usage

var Mincer = require('mincer');

require('mincer-cssurl')(Mincer);

// Enable configuration globally
Mincer.enable("cssurl");

// Enable configuration on specific environment
user_env.enable("cssurl");

// Disable previously enabled configuration
admin_env.disable("cssurl");