Skip to content

triskeljs/loader

Repository files navigation

@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()
  ]
}