webpack-loader-vdes-template
v1.0.9
Published
> TODO: description
Downloads
2
Readme
webpack-loader-vdes-template
TODO: Using precomilation, greatly improve the performance of templates in the browser
Installation
yarn add vdes-template
yarn add -D webpack-loader-vdes-template
webpack rule
moudle.exports = {
module: {
rules: [
{
test: /\.vdest$/,
loader: 'webpack-loader-vdes-template',
options: {
// {PreCompileOption} from 'vdes-template'
}
}
]
}
}
Usage
./yourName.vdest
Hello, I am {{name}}
import render from './yourName.vdest'
console.log(render({
name: 'vdes-template'
})) // Hello, I am vdes-template