Triskel HTML loader for Webpack and Rollup
npm i -D @triskel/loader
# npm install --save-dev @triskel/loader
webpack.config.js
module.exports = {
module: {
loaders: [
{
test: /\.html$/,
loader: '@triskel/loader'
}
]
}
}
rollup.config.js
import triskelLoader from '@triskel/loader/rollup'
export default {
input: 'src/main.js',
output: {
file: 'dist/bundle.js',
format: 'iife'
},
plugins: [
triskelLoader()
]
}