ect templates compiler for webpack
npm install ect-loaderAs there wasn't a loader for webpack, I've decided to build one before going to
bed. Here it is, show your apretiation by starring the project, tweeting and
enjoy using it.
```
npm i --save-dev ect-loader
This webpack config can compile ect templates for you to use on your browser
without having to load ECT and CoffeeScript browser versions.
` javascript`
module.exports = {
module: {
loaders: [
{ test: /\.ect$/, loader: "ect" }
]
}
};
This loader minifies template before compiling in case you're running with
performance enhancment option (webpack -p).
It works by cutting off spaces between HTML tags and line-breaks.
<%- __ "Read the docs" %>
`$3
`
Lê a documentação
``