const HtmlWebpackPlugin = require('html-webpack-plugin')
// loading组件
const loading = require('./render-loading')
module.exports = {
entry: './src/index.js',
output: {
path: __dirname + '/dist',
filename: 'index_bundle.js'
},
plugins: [
new HtmlWebpackPlugin({
template: './src/index.html',
// 使用loading
loading: loading
})
]
}
webpack配置loading
最新推荐文章于 2022-11-22 11:04:43 发布