javascript Webpack gerando o .html automaticamente
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript Webpack gerando o .html automaticamente相关的知识,希望对你有一定的参考价值。
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: "./src/scripts/app.js", //relative to root of the application
output: {
filename: "./dist/app.bundle.js" //relative to root of the application
},
plugins: [
new HtmlWebpackPlugin({
hash: true,
filename: './dist/index.html' //relative to root of the application
})
]
}
以上是关于javascript Webpack gerando o .html automaticamente的主要内容,如果未能解决你的问题,请参考以下文章