@triskel/loader

1.1.2 • Public • Published

@triskel/loader

Triskel HTML loader for Webpack and Rollup

npm Build Status dependencies Status GitHub license

Installation

npm i -D @triskel/loader

# npm install --save-dev @triskel/loader

Webpack

webpack.config.js

module.exports = {
  module: {
    loaders: [
      {
        test: /\.html$/,
        loader: '@triskel/loader'
      }
    ]
  }
}

Rollup

rollup.config.js

import triskelLoader from '@triskel/loader/rollup'

export default {
  input: 'src/main.js',
  output: {
    file: 'dist/bundle.js',
    format: 'iife'
  },

  plugins: [
    triskelLoader()
  ]
}

/@triskel/loader/

    Package Sidebar

    Install

    npm i @triskel/loader

    Weekly Downloads

    37

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    8.85 kB

    Total Files

    12

    Last publish

    Collaborators

    • jgermade