aboutsummaryrefslogtreecommitdiff
path: root/webpack.prod.js
diff options
context:
space:
mode:
authorMetaMuffin <metamuffin@yandex.com>2021-08-06 14:44:49 +0200
committerMetaMuffin <metamuffin@yandex.com>2021-08-06 14:44:49 +0200
commitff350d6c0ea1f3c12076349bd64b7df1318878ad (patch)
treed8dcdedebc5b1f87b32d53f8c7b5453c93b1f277 /webpack.prod.js
parentb772ad9b0c0c4284e6f8fc87e675e4d44f272959 (diff)
downloadkeks-meet-ff350d6c0ea1f3c12076349bd64b7df1318878ad.tar
keks-meet-ff350d6c0ea1f3c12076349bd64b7df1318878ad.tar.bz2
keks-meet-ff350d6c0ea1f3c12076349bd64b7df1318878ad.tar.zst
fixed production env
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
+ },
+};