0.2.0 • Published 8 years ago

rollup-plugin-vinyl v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

rollup-plugin-vinyl

Build Status Dependecies status

A rollup.js plugin to import from Vinyl files.

installation

npm i -D rollup-plugin-vinyl

Usage

import vinyl from 'rollup-plugin-vinyl';
import File from 'vinyl';

export default {
  entry: 'src/main.js',
  format: 'cjs',
  plugins: [

      // Single file
      vinyl({ files: new File({ ... }) }),

      // Multiple files
      vinyl({ files: [
          vinylFile1,
          vinylFile2,
          ...
      ] }),

      // Custom module resolution
      // It will resolve import `import Module from 'lib/module'`
      // in `lib/module.ts` and if not founded by `lib/module/indes.ts`
      vinyl({
        extension: 'ts',
        files: ...
      })

  ],
  dest: 'bundle.js'
}

Test

git clone https://github.com/operandom/rollup-plugin-vinyl.git
cd rollup-plugin-vinyl
npm install
npm test

License

Released under the MIT license.

0.2.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago