webpack/examples/code-splitting-depend-on-si.../webpack.config.js

16 lines
343 B
JavaScript
Raw Normal View History

"use strict";
module.exports = {
entry: {
app: { import: "./app.js", dependOn: ["react-vendors"] },
"react-vendors": ["react", "react-dom", "prop-types"]
},
optimization: {
2020-02-07 17:00:45 +08:00
chunkIds: "named" // To keep filename consistent between different modes (for example building only)
},
stats: {
chunks: true,
chunkRelations: true
}
};