webpack/examples/common-chunk-grandchildren/webpack.config.js

21 lines
454 B
JavaScript

"use strict";
const path = require("path");
module.exports = {
// mode: "development" || "production",
entry: {
main: ["./example.js"]
},
optimization: {
splitChunks: {
minSize: 0 // This example is too small, in practice you can use the defaults
},
chunkIds: "named" // To keep filename consistent between different modes (for example building only)
},
output: {
path: path.resolve(__dirname, "dist"),
filename: "output.js"
}
};