airboardgame/backend/webpack.development.js

19 lines
423 B
JavaScript
Raw Normal View History

import path from "path";
import { merge } from "webpack-merge";
import common from "./webpack.common.js";
2022-10-24 23:16:48 +02:00
import { fileURLToPath } from "url";
const dirname = path.dirname(fileURLToPath(import.meta.url));
2020-12-11 20:24:33 +01:00
export default merge(common, {
2020-12-11 20:24:33 +01:00
mode: "development",
watchOptions: {
ignored: ["node_modules/**"],
},
devServer: {
2022-10-24 23:16:48 +02:00
contentBase: path.join(dirname, "dist"),
2020-12-11 20:24:33 +01:00
compress: true,
port: 9000,
},
});