webpack/test/configCases/split-chunks-common/library/webpack.config.js

28 lines
430 B
JavaScript
Raw Normal View History

module.exports = {
entry: {
vendor: ["external0", "./a"],
main: "./index"
},
target: "web",
output: {
filename: "[name].js",
libraryTarget: "umd"
},
externals: ["external0", "external1", "external2", "fs", "path"],
optimization: {
splitChunks: {
cacheGroups: {
vendor: {
test: "vendor",
name: "vendor",
enforce: true
}
}
}
},
node: {
__filename: false,
__dirname: false
}
2017-01-11 17:51:58 +08:00
};