diff options
author | MetaMuffin <metamuffin@yandex.com> | 2021-08-02 10:34:36 +0200 |
---|---|---|
committer | MetaMuffin <metamuffin@yandex.com> | 2021-08-02 10:34:36 +0200 |
commit | 6d4a9c797edf2bbb75cea6afef109cb457c52641 (patch) | |
tree | 1b2e585b9349184d7e6657211d5c164145bd8210 /webpack.config.js | |
download | keks-meet-6d4a9c797edf2bbb75cea6afef109cb457c52641.tar keks-meet-6d4a9c797edf2bbb75cea6afef109cb457c52641.tar.bz2 keks-meet-6d4a9c797edf2bbb75cea6afef109cb457c52641.tar.zst |
initial commit
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..98c0a9b --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,37 @@ +const path = require('path'); + +module.exports = { + mode: "development", + 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: false, + removeEmptyChunks: false, + splitChunks: false, + }, +}; |