Webpack từ A đến Á: Webpack multiple entry points (ok)
https://kentrung256.blogspot.com/2020/07/webpack-multiple-entry-points.html
Webpack từ A đến Á: Webpack multiple entry points
1. Chuẩn bị file
const path = require('path')
module.exports = {
entry: './src/index.js',
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'dist')
}
}2. Cấu hình multiple entry point
3. Cấu hình output
4. Tổng kết file webpack.config.js
PreviousWebpack từ A đến Á: Webpack output hash digest (ok)NextWebpack từ A đến Á: Webpack multiple file types per entry (ok)
Last updated