2022-09-02 14:55:26 +02:00
|
|
|
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
|
|
|
|
2022-09-02 14:55:26 +02: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,
|
|
|
|
},
|
|
|
|
});
|