2025-07-02 20:10:54 +08:00
|
|
|
"use strict";
|
|
|
|
|
2024-07-31 09:56:53 +08:00
|
|
|
const path = require("path");
|
|
|
|
|
2015-11-21 04:36:43 +08:00
|
|
|
module.exports = {
|
2023-03-12 10:27:40 +08:00
|
|
|
// mode: "development" || "production",
|
2015-11-21 04:36:43 +08:00
|
|
|
entry: {
|
2018-01-20 00:06:59 +08:00
|
|
|
main: "./example"
|
|
|
|
},
|
|
|
|
optimization: {
|
|
|
|
runtimeChunk: true
|
2015-11-21 04:36:43 +08:00
|
|
|
},
|
|
|
|
output: {
|
2018-01-05 04:39:29 +08:00
|
|
|
path: path.join(__dirname, "dist"),
|
2015-11-21 04:36:43 +08:00
|
|
|
filename: "[name].chunkhash.js",
|
2018-01-20 00:06:59 +08:00
|
|
|
chunkFilename: "[name].chunkhash.js"
|
|
|
|
}
|
2017-01-11 17:51:58 +08:00
|
|
|
};
|