Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 319 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 319 Bytes

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的路径