mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-12 02:17:21 +08:00
6499cedc28
* rewrote route controller * showing loading by default * links which are not external need data line attribute * need to rewrite this * page controller takes a page as parameter removed page type * default export * going through the route controller instead of changing page directly * resolving all code paths * using navigate * added 404, leaderboards route * changed leaderboards button to a link * removed click handler * added page about route * removed default export, added settings page route * removing pointer events from everything inside links * navigating to account when on login page * fixed console logs, using async * added login and account pages * moved code to their own functions * allowing async functions * defaulting content visible * async * fixed 404 not navigating correctly * setting public path to root * fixed paths * using uid passed in through url params * added 404 page, profile routes * removed comment * moved discord link flow to url handler * allowing html * not resetting state * removed function * handling logo click * removed comments * reomoved comments * removed comments * removed comments * using new router * basic 404 page * buttons whicha are links have no underline * correctly handling the take me back button * updated button * removed comments * fixed account page profile link button * updated 404 * removed comments * removed comments * removed comments
30 lines
688 B
JavaScript
30 lines
688 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,
|
|
},
|
|
},
|
|
output: {
|
|
publicPath: "/",
|
|
},
|
|
plugins: [
|
|
new ExtraWatchWebpackPlugin({
|
|
dirs: [resolve(__dirname, "../static/html")],
|
|
}),
|
|
],
|
|
};
|
|
|
|
module.exports = merge(BASE_CONFIG, DEV_CONFIG);
|