0.0.1 • Published 7 years ago
@jujorie/html-2-angularjs-plugin v0.0.1
html-2-angularjs-plugin
Webpack plugin to extract html files to js
Table of contents
Installation
To install the plugin
$ npm install -D @jujorie/html-2-angularjs-plugin
Dependencies
This plugin depends on
- html-minifier To minify the html code on the templates
Usage Example
Like webpack.config.js
const html2AngularjsPlugin = require('@jujorie/html-2-angularjs-plugin');
module.exports = {
plugins: [
new html2AngularjsPlugin({
moduleName: 'app',
filename: 'output.js',
test: /\.html/,
exclude: /index\.html/
})
]
}
Options
Plugin options
filename Name of the generated file.
default: 'template.js'
moduleName Name of the angular module
default 'app'
test Regexp to find the html files
default /.html/
exclude Regexp to select files to exclude
default null
0.0.1
7 years ago