aboutsummaryrefslogtreecommitdiff
path: root/webpack.prod.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.prod.js')
-rw-r--r--webpack.prod.js27
1 files changed, 27 insertions, 0 deletions
diff --git a/webpack.prod.js b/webpack.prod.js
new file mode 100644
index 0000000..fc098bf
--- /dev/null
+++ b/webpack.prod.js
@@ -0,0 +1,27 @@
+const path = require('path');
+
+module.exports = {
+ mode: "production",
+ entry: './source/client/index.ts',
+ module: {
+ rules: [
+ {
+ test: /\.tsx?$/,
+ loader: 'ts-loader',
+ exclude: /node_modules/,
+ options: {
+ configFile: "tsconfig.client.json"
+ }
+ }
+ ],
+ },
+ resolve: {
+ modules: ['source','node_modules'],
+ extensions: ['.tsx', '.ts', '.js', '.json'],
+ },
+ output: {
+ filename: 'bundle.js',
+ path: path.resolve(__dirname, 'public/dist'),
+ pathinfo: false
+ },
+};