riot-plain-loader
A loader for WebPack for plain-JS Riot tags.
It does two things:
- Minifies HTML right inside of plain-JS tags
- Fixes all of the HTML limitations when working with
riot.tag()
, since your HTML starts to act like if it's a.tag
file.
This is just a wrapper around riot-plain-htmlmin package. Check it out for more information
Usage
// webpack.config.jsmoduleexports = ... module: preLoaders: test: /\.riot$/ exclude: /node_modules/ loader: 'riot-plain' query: compact: true