Skip to content

vovkasm/rollup-plugin-riot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status NPM version NPM downloads MIT License

Rollup Plugin for Riot

Compiles tag files within rollup processes.

Installation

$ npm install --save-dev rollup-plugin-riot

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
  • riotPath: Specify the path to riot (default 'riot')
  • include: A minimatch pattern for including files.
  • exclude: A minimatch pattern for excluding files.

And other options of riot-compiler could be used.

Recipes

Packages

No packages published

Languages

  • JavaScript 100.0%