webpack4入门

webpack结构图

webpack.config.js
const path = require('path');
module.exports = {
entry: {
home: './src/home.js',
about: './src/about.js',
other: './src/other.js',
input: './src/input.js',
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].bundle.js'
},
mode: 'development'
}
在终端输入webpack 即可
posted on 2020-05-21 07:34 Indian_Mysore 阅读(84) 评论(0) 收藏 举报
浙公网安备 33010602011771号