Compiles tag files within rollup processes.
$ npm install --save-dev rollup-plugin-riot
import riot from 'rollup-plugin-riot'
export default {
entry: 'src/main.js',
dest: 'dist/bundle.js',
plugins: [riot()]
}
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
orjs
include
: A minimatch pattern for including files.exclude
: A minimatch pattern for excluding files.
And other options of riot-comipler
could be used.