edp-build-url-embed
Embed URL's as base64 strings inside your stylesheets using edp build
Install
npm install edp-build-url-embed --save-dev
Usage
Add code in edp-build-config.js
var UrlEmbededProcessor = ;var urlEmbed = ;
Options
inclusive
Type: Boolean
Default: false
Specifies the mode of embedding.
true
(inclusive) means that you have to manually mark each URL that needs to be embedded using the/* embed */
comment.false
(exclusive) means that every URL is embedded, except those that are marked with/* noembed */
comment.
extensions
Type: Array
Default: ['.jpg', '.png']
Specifies the extensions of urls to be embed.
files
Type: Array
Default: ['*.styl', '*.css', '*.less']
Input files.
Excluding URLs manually (when inclusive: false)
Including URLs manually (when inclusive: true)
When URLs are in the middle of CSS property