mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-11 18:03:30 +08:00
27 lines
650 B
JavaScript
27 lines
650 B
JavaScript
const { resolve } = require("path");
|
|
const { merge } = require("webpack-merge");
|
|
const BASE_CONFIG = require("./config.base");
|
|
const ExtraWatchWebpackPlugin = require("extra-watch-webpack-plugin");
|
|
|
|
/** @type { import('webpack').Configuration } */
|
|
const DEV_CONFIG = {
|
|
mode: "development",
|
|
devtool: "inline-source-map",
|
|
devServer: {
|
|
compress: true,
|
|
port: 3000,
|
|
open: true,
|
|
hot: false,
|
|
historyApiFallback: true,
|
|
client: {
|
|
overlay: false,
|
|
},
|
|
},
|
|
plugins: [
|
|
new ExtraWatchWebpackPlugin({
|
|
dirs: [resolve(__dirname, "../static/html")],
|
|
}),
|
|
],
|
|
};
|
|
|
|
module.exports = merge(BASE_CONFIG, DEV_CONFIG);
|