9.0.2 • Published 7 months ago

rollup-plugin-riot v9.0.2

Weekly downloads
167
License
MIT
Repository
github
Last release
7 months ago

Rollup Plugin for Riot

Build Status NPM version NPM downloads MIT License

Compiles tag files within rollup processes.

Important

If you are using Riot.js < 4.0.0 please check the v3 branch

Installation

npm install rollup-plugin-riot @riotjs/compiler -D

Requires @riotjs/compiler > 4.x.x and Rollup v1.x.x or above.

Usage

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

Options

You can specify some options:

import riot from 'rollup-plugin-riot'
const options = {
  ext: 'html',
}
export default {
  input: 'src/main.js',
  output: {
    file: 'dist/bundle.js',
  },
  plugins: [riot(options)],
}
  • ext: extension of tag file (default is 'riot')
  • include: a minimatch pattern for including files.
  • exclude: a minimatch pattern for excluding files.

And other options of @riotjs/compiler could be used.

Recipes

9.0.2

7 months ago

7.0.0

11 months ago

9.0.1

9 months ago

9.0.0

9 months ago

6.0.0

3 years ago

5.0.0

3 years ago

4.0.2

4 years ago

4.0.0

5 years ago

4.0.0-beta.1

5 years ago

4.0.0-alpha.1

5 years ago

2.1.0

5 years ago

2.0.0

6 years ago

1.2.0

6 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.4.3

8 years ago

0.4.2

8 years ago

0.4.0

8 years ago

1.0.0-alpha.1

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago