Replace references to images in CSS with base64 strings
npm install @yapplabs/broccoli-base64-cssBroccoli plugin to replace asset urls in CSS with base64 strings.
```
yarn add @yapplabs/broccoli-base64-css
`js`
let Base64CSS = require('broccoli-base64-css');
let outputNode = new Base64CSS(inputNode, {
/ options /
});
Type: String "public"
Default:
The location to look to locate images referenced in the CSS files being updated.
Type: String "public"
Default:
The location to look to locate font resources referenced in the CSS files being updated.
Type: Number 4096
Default:
Images or fonts larger than this size will not be converted.
Type: Array ['css']
Default:
Files with this extension will be processed.
Type: Array ['png', 'jpg', 'jpeg', 'gif', 'svg']
Default:
Images/font references with these extensions will be replaced.
Type: Boolean true
Default:
Enable\disable a persistent cache to improve build performance across restarts. Check out broccoli-persistent-filter for more details.
```
yarn install
yarn test
This project is distributed under the MIT license.