summaryrefslogtreecommitdiff
path: root/public/webpack-dev.config.cjs
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-02-19 19:57:10 +0100
committeraura <nw@moneybot.cc>2026-02-19 19:57:10 +0100
commitbedf43af45d97a10a6f62b4f1bb21cd66fda1d71 (patch)
tree6501bb95977a574c188bef6a228ff7500b243f3a /public/webpack-dev.config.cjs
parentb5fca421c8f5f0f8f26d1392ef48635196887fa3 (diff)
empty moneyjsx site
Diffstat (limited to 'public/webpack-dev.config.cjs')
-rw-r--r--public/webpack-dev.config.cjs46
1 files changed, 46 insertions, 0 deletions
diff --git a/public/webpack-dev.config.cjs b/public/webpack-dev.config.cjs
new file mode 100644
index 0000000..6cffec7
--- /dev/null
+++ b/public/webpack-dev.config.cjs
@@ -0,0 +1,46 @@
+const path = require('path');
+const HtmlWebpackPlugin = require('html-webpack-plugin');
+const CopyWebpackPlugin = require('copy-webpack-plugin');
+
+module.exports = {
+ mode: 'development',
+ entry: './src/index-page.tsx',
+ module: {
+ rules: [
+ {
+ test: /\.tsx?$/,
+ use: {
+ loader: 'ts-loader',
+ options: {
+ compilerOptions: {
+ module: 'es2020'
+ }
+ }
+ },
+ exclude: /node_modules/,
+ }
+ ],
+ },
+ resolve: {
+ extensions: ['.tsx', '.jsx', ".js"],
+ },
+ output: {
+ filename: 'bundle.js',
+ path: path.resolve(__dirname, 'dist'),
+ publicPath: '/'
+ },
+ plugins: [
+ new HtmlWebpackPlugin({
+ template: './src/index.html',
+ }),
+ new CopyWebpackPlugin({
+ patterns: [
+ { from: './static/**' }
+ ]
+ })
+ ],
+ devServer: {
+ historyApiFallback: true,
+ port: 9000,
+ },
+};