webpack/examples/module-worker/webpack.config.js

21 lines
444 B
JavaScript
Raw Normal View History

"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
}
};