riot-plain-loader
v0.0.3
Published
A loader for WebPack which minifies HTML right inside of plain-JS Riot tags.
Downloads
30
Maintainers
Readme
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.js
module.exports = {
...
module: {
preLoaders: [
{
test: /\.riot$/,
exclude: /node_modules/,
loader: 'riot-plain',
query: {
compact: true
}
}
]
}
}