odin-webpack-template/webpack.dev.js

16 lines
337 B
JavaScript
Raw Normal View History

2024-02-20 20:11:08 +00:00
const path = require("path");
const { merge } = require("webpack-merge");
const common = require("./webpack.common.js");
module.exports = merge(common, {
mode: "development",
devtool: "inline-source-map",
devServer: {
static: {
directory: path.join(__dirname, "src"),
},
compress: true,
port: 9001,
},
});