mirror of https://github.com/webpack/webpack.git
19 lines
403 B
JavaScript
19 lines
403 B
JavaScript
var CommonsChunkPlugin = require("../../../../lib/optimize/CommonsChunkPlugin");
|
|
var HotModuleReplacementPlugin = require("../../../../lib/HotModuleReplacementPlugin");
|
|
module.exports = {
|
|
entry: {
|
|
vendor: ["./vendor"],
|
|
main: "./index"
|
|
},
|
|
target: "web",
|
|
output: {
|
|
filename: "[name].js"
|
|
},
|
|
plugins: [
|
|
new CommonsChunkPlugin({
|
|
name: "vendor"
|
|
}),
|
|
new HotModuleReplacementPlugin()
|
|
]
|
|
};
|