- Now we have 2 entry files and 2 bundles - The vendor file houses code that is less likely to change, 3rd party libraries - The main file has all of our app code
12 lines
267 B
JavaScript
12 lines
267 B
JavaScript
const path = require("path");
|
|
const common = require("./webpack.common");
|
|
const merge = require("webpack-merge");
|
|
|
|
module.exports = merge(common, {
|
|
mode: "development",
|
|
output: {
|
|
filename: "[name].bundle.js",
|
|
path: path.resolve(__dirname, "dist")
|
|
}
|
|
});
|