Files
url_tracker_tool/node_modules/fast-equals/config/webpack.config.js
Andrei 58f8093689 Rebrand from 'Redirect Intelligence v2' to 'URL Tracker Tool V2' throughout UI
- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
2025-08-19 19:12:23 +00:00

58 lines
1.2 KiB
JavaScript

/* eslint-disable @typescript-eslint/no-var-requires */
import ESLintWebpackPlugin from 'eslint-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import path from 'path';
import { fileURLToPath } from 'url';
import webpack from 'webpack';
const ROOT = fileURLToPath(new URL('..', import.meta.url));
const PORT = 3000;
export default {
cache: true,
devServer: {
host: 'localhost',
port: PORT,
},
devtool: 'source-map',
entry: [path.resolve(ROOT, 'DEV_ONLY', 'index.tsx')],
mode: 'development',
module: {
rules: [
{
include: [path.resolve(ROOT, 'src'), path.resolve(ROOT, 'DEV_ONLY')],
loader: 'ts-loader',
options: {
reportFiles: ['src/*.{ts|tsx}'],
},
test: /\.(ts|tsx)$/,
},
],
},
output: {
filename: 'fast-equals.js',
library: 'fastEquals',
libraryTarget: 'umd',
path: path.resolve(ROOT, 'dist'),
publicPath: `http://localhost:${PORT}/`,
umdNamedDefine: true,
},
plugins: [
new ESLintWebpackPlugin(),
new webpack.EnvironmentPlugin(['NODE_ENV']),
new HtmlWebpackPlugin(),
],
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
};