rollup-plugin-encoding
Rollup plugin to convert files from one encoding to another, built on top of encoding package.
Installation
npm install --save-dev rollup-plugin-encoding
Usage
Add the following lines to your rollup.config.js
:
; // ... plugins:
or
; // ... plugins:
Options
src:<string>
* - path to the file to be encodeddest:<string>
* - path where to put encoded filetoCharset:<string>
* - the charset to convert tofromCharset:<string>
- (optional, default'UTF-8'
) the source charsetverbose:<boolean>
- (optional, defaultfalse
) display verbose message