https://github.com/osdio/js2html-webpack-plugin
https://github.com/osdio/js2html-webpack-plugin
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/osdio/js2html-webpack-plugin
- Owner: osdio
- Created: 2016-01-18T03:19:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-25T08:17:38.000Z (over 10 years ago)
- Last Synced: 2025-06-20T14:06:48.935Z (about 1 year ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# js2html-webpack-plugin
> Used for compile the js into html.
## Install
```
npm i js2html-webpack-plugin --save-dev
```
## Example
```
baseConfig.plugins = [
new JS2HtmlPlugin({
template: path.resolve('./examples/simple/index.html')
})
];
```
## API
### template
html的路径