2.2.0 • Published 6 years ago

rollup-plugin-ractive v2.2.0

Weekly downloads
14
License
MIT
Repository
github
Last release
6 years ago

rollup-plugin-ractive

Precompile Ractive components.

Installation

npm install --save ractive # not included!
npm install --save-dev rollup-plugin-ractive

Usage

import { rollup } from 'rollup';
import ractive from 'rollup-plugin-ractive';

rollup({
  entry: 'src/main.js',
  plugins: [
    ractive({
      // By default, all .html files are compiled
      extensions: [ '.html', '.ract' ],

      // You can restrict which files are compiled
      // using `include` and `exclude`
      include: 'src/components/**.html',
      
      // Output format. When doing server-side rendering, you might need to set this
      // to "cjs" if you import other JS files in your components.
      format: 'es6',
      
      // Options passed to Ractive.parse()
      parseOptions: {}
    })
  ]
}).then(...)

License

MIT

2.2.0

6 years ago

2.1.0

7 years ago

2.0.0

8 years ago

2.0.0-edge1

8 years ago

2.0.0-edge

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.2

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago