mirror of https://github.com/webpack/webpack.git
21 lines
454 B
JavaScript
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"
|
|
}
|
|
};
|