aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.prod.js
diff options
context:
space:
mode:
authorMetaMuffin <metamuffin@yandex.com>2021-08-02 10:34:36 +0200
committerMetaMuffin <metamuffin@yandex.com>2021-08-02 10:34:36 +0200
commit6d4a9c797edf2bbb75cea6afef109cb457c52641 (patch)
tree1b2e585b9349184d7e6657211d5c164145bd8210 /webpack.config.prod.js
downloadkeks-meet-6d4a9c797edf2bbb75cea6afef109cb457c52641.tar
keks-meet-6d4a9c797edf2bbb75cea6afef109cb457c52641.tar.bz2
keks-meet-6d4a9c797edf2bbb75cea6afef109cb457c52641.tar.zst
initial commit
Diffstat (limited to 'webpack.config.prod.js')
-rw-r--r--webpack.config.prod.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/webpack.config.prod.js b/webpack.config.prod.js
new file mode 100644
index 0000000..fed9f15
--- /dev/null
+++ b/webpack.config.prod.js
@@ -0,0 +1,37 @@
+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"
+ }
+ },
+ {
+ enforce: "pre",
+ test: /\.js$/,
+ loader: "source-map-loader"
+ }
+ ],
+ },
+ resolve: {
+ modules: ['source','node_modules'],
+ extensions: ['.tsx', '.ts', '.js', '.json'],
+ },
+ output: {
+ filename: 'bundle.js',
+ path: path.resolve(__dirname, 'public/dist'),
+ pathinfo: false
+ },
+ optimization: {
+ removeAvailableModules: true,
+ removeEmptyChunks: true,
+ splitChunks: true,
+ },
+};