Clone or download

README.md

Build Status NPM version NPM downloads MIT License

Rollup Plugin for Riot

Compiles tag files within rollup processes.

Installation

$ npm install rollup-plugin-riot riot-compiler -D

Usage

import riot  from 'rollup-plugin-riot'
export default {
  entry: 'src/main.js',
  dest: 'dist/bundle.js',
  plugins: [riot()]
}

Options

You can specify some options:

import riot  from 'rollup-plugin-riot'
const options = {
  ext: 'html'
}
export default {
  entry: 'src/main.js',
  dest: 'dist/bundle.js',
  plugins: [riot(options)]
}
  • ext: extension of tag file (default is 'tag')
  • skip: exclude on Riot API. Ex. html, css or js
  • include: a minimatch pattern for including files.
  • exclude: a minimatch pattern for excluding files.
  • parsers: extends parsers (it works the same as riot.config.js).

And other options of riot-compiler could be used.

Recipes