separate :workers build

This commit is contained in:
Tienson Qin
2025-03-10 17:20:39 +08:00
parent 849ffd3329
commit b122d453c2
5 changed files with 57 additions and 24 deletions

View File

@@ -3,10 +3,14 @@ const webpack = require('webpack');
module.exports = {
mode: "development",
entry: './target/index.js',
entry: {
main : "./target/main.js",
workers : "./target/workers.js"
},
output: {
path: path.resolve(__dirname, 'static/js/libs'),
filename: 'bundle.js',
filename: '[name]-bundle.js',
clean: true,
chunkLoading: false,
},