webpack-ect-loader
v1.0.5
Published
ECT templates compiler for webpack4
Downloads
42
Maintainers
Readme
webpack-ect-loader
The ect templates compiler for webpack. This includes a html formatter pretty.
Installation
npm i -D webpack-ect-loader
Configuration
This works with the following helper packages
module.exports = {
module: {
rules: [
{
test: /\.ect$/,
use: [
{
loader: 'html-loader',
options: {
}
},
{
loader: 'ect-loader',
options: {
root: path.resolve(__dirname, 'src/ect'),
}
}
]
},
]
},
plugins: [
new HtmlWebpackPlugin({
template: 'src/index.ect',
filename: 'index.[contenthash].html'
})
]
};