@triskel/loader
v1.1.2
Published
HTML minifier
Downloads
85
Readme
@triskel/loader
Triskel HTML loader for Webpack and Rollup
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()
]
}