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
        }
      }
    ]
  }
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    12
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    12
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i riot-plain-loader

Weekly Downloads

4

Version

0.0.3

License

MIT

Last publish

Collaborators

  • ilearnio