riot-plain-loader

0.0.3 • Public • Published

riot-plain-loader

NPM Version

A loader for WebPack for plain-JS Riot tags.

It does two things:

  1. Minifies HTML right inside of plain-JS tags
  2. 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
        }
      }
    ]
  }
}

Package Sidebar

Install

npm i riot-plain-loader

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • ilearnio