Rollup Plugin File
Rollup plugin to read a file (or vinyl) as an entry, rather than a string.
Installation
npm install --save-dev rollup-plugin-file
Usage
The entry file must have the base
property. Any imports in the entry file will be looked for relative to the base
filepath.
The below is a Gulp example, however it can be used with any file as long as it has the base
property.
;;; gulp;
Use gulp-rollup-file
instead of this directly for Gulp, and use alongside gulp-process-inline
to use Rollup with inline <script>
blocks in HTML.
TODO
- Add tests
License
MIT © Simpla