HtmlWebpackPlugin
作者:互联网
const path = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') module.exports = { entry: './src/index.js', output: { filename: 'bundle.js', path: path.resolve(__dirname, './dist'), clean: true }, mode: 'none', plugins: [ new HtmlWebpackPlugin({ template: './index.html', filename: 'app.html', inject: 'body' }) ] }
标签:index,const,filename,html,HtmlWebpackPlugin,path 来源: https://www.cnblogs.com/yyy1234/p/16221264.html