2025-07-02 20:10:54 +08:00
|
|
|
"use strict";
|
|
|
|
|
2024-07-31 09:56:53 +08:00
|
|
|
const path = require("path");
|
2021-06-28 18:30:25 +08:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: "./example.js",
|
|
|
|
output: {
|
|
|
|
path: path.join(__dirname, "dist"),
|
|
|
|
filename: "[name].js",
|
|
|
|
chunkFilename: "[name].js",
|
|
|
|
publicPath: "/dist/"
|
|
|
|
},
|
|
|
|
optimization: {
|
|
|
|
chunkIds: "deterministic" // To keep filename consistent between different modes (for example building only)
|
|
|
|
},
|
|
|
|
target: "browserslist: last 2 Chrome versions",
|
|
|
|
experiments: {
|
|
|
|
outputModule: true
|
|
|
|
}
|
|
|
|
};
|