package
inline images plugin
npm install less-plugin-inline-urlsGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Converts url("image.png") to data-uri's automatically, without having to write data-uri("image.png") in your less
npm install -g less-plugin-inline-urlsand then on the command line,
lessc file.less --inline-urlsvar inline-urls-plugin = require('less-plugin-inline-urls');
less.render(lessString, { plugins: [inline-urls-plugin] })
.then(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).
cloudhead
alexis@cloudhead.io