Skip to content
No description or website provided.
JavaScript CSS
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test better fix for param replacement
.gitignore Remove auto-prifixer and make package just about the inline images pl…
LICENSE
README.md Update browser usage Fix #4
package.json 1.1.0 release - now removed ?params from urls before inlining

README.md

NPM version Dependencies devDependency Status optionalDependency Status

less-plugin-inline-urls

Converts url("image.png") to data-uri's automatically, without having to write data-uri("image.png") in your less

lessc usage

npm install -g less-plugin-inline-urls

and then on the command line,

lessc file.less --inline-urls

Programmatic usage

var inline-urls-plugin = require('less-plugin-inline-urls');
less.render(lessString, { plugins: [inline-urls-plugin] })
  .then(

Browser usage

Browser usage is not supported at this time and is blocked on data-uri which does not work in the browser (not sure why you would want it to).

Something went wrong with that request. Please try again.