diff options
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, + }, +}; |