Gianluca Guarini 6f091b89d4 closes #7
2019-04-20 00:59:09 +02:00
2019-04-20 00:59:09 +02:00
2019-04-20 00:59:09 +02:00
2019-03-23 16:01:50 +01:00
2019-04-20 00:59:09 +02:00
2019-03-23 16:04:56 +01:00
2019-04-20 00:59:09 +02:00
2019-04-20 00:59:09 +02:00

Build Status NPM version NPM downloads MIT License

A parcel plugin for riot.js

Using

Add parcel-plugin-riot to your project.

npm i -D @riotjs/parcel-plugin-riot @riotjs/compiler

-> You are ready!

import App from './src/App.riot'
import {component} from 'riot'

component(App)(document.querySelector('#root'), {
  message: 'Hello there'
})

Configuration

If you want compile your tags using custom riot compiler options you can create a riot.config.js in the root folder of your project

export default {
  hot: false // set it to true if you are using hmr
  // add here all the other @riotjs/compiler options riot.js.org/compiler
  // template: 'pug' for example
}

If you want to enable hmr via hot option you will need to install also @riotjs/hot-reload

npm i @riotjs/hot-reload -D
Description
Fort verion for me.
Readme 531 KiB
2022-02-10 06:09:18 -06:00
Languages
JavaScript 79.7%
HTML 14.9%
Riot 5.4%