2019-05-14 22:35:11 +02:00
2018-01-23 10:26:12 +01:00
2019-03-23 16:01:50 +01:00
2019-03-23 16:04:56 +01: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 parcel-plugin-riot

-> You are ready!


const riot = require('riot')
require('./src/App.tag')

riot.mount('*')

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

module.exports = {
  // html parser
  template: 'foo',
  // js parser
  type: 'baz',
  // css parser
  style: 'bar',
  parsers: {
    html: {
      foo: (html, opts, url) => require('foo').compile(html)
    },
    css: {
      bar: (tagName, css, opts, url) => require('bar').compile(css)
    },
    js: {
      baz: (js, opts, url) => require('baz').compile(js)
    }
  },
  // special options that may be used to extend
  // the default riot parsers options
  parserOptions: {
    js: {},
    template: {},
    style: {}
  }
}

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%