diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-03-23 22:26:33 +0100 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-03-23 22:26:33 +0100 |
| commit | 06ee582c4adefdb35220c63ee4a30444474e9388 (patch) | |
| tree | db90fc0814013d7c43029f1094cf6f8afffe67e5 /webpack.config.js | |
| parent | cd3f7eda8f8a9c407b7750a374e8a40c52c2d881 (diff) | |
| parent | 30b4e3e8c84ce3f980fe895d4c64800fc7f00ece (diff) | |
Merge branch 'master' into coolloading
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/webpack.config.js b/webpack.config.js index 5c8b1de..07bca15 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -15,13 +15,17 @@ module.exports = { entry: { ui: './webAO/ui.js', client: './webAO/client.js', - master: './webAO/master.js', + master: './webAO/master.ts', dom: glob.sync('./webAO/dom/*.js'), + components: glob.sync('./webAO/components/*.js'), }, node: { global: true, }, devtool: 'source-map', + resolve: { + extensions: ['.js', '.jsx', '.tsx', '.ts', '.json'], + }, devServer: { static: { directory: path.join(__dirname, 'webAO'), @@ -55,6 +59,9 @@ module.exports = { }, }, }, + { test: /\.ts?$/, loader: "ts-loader" }, + // All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'. + { test: /\.js$/, loader: "source-map-loader" }, ], }, output: { @@ -86,13 +93,13 @@ module.exports = { new HtmlWebpackPlugin({ title: 'Attorney Online', filename: 'client.html', - chunks: ['client', 'ui', 'dom'], + chunks: ['client', 'ui', 'dom', 'components'], template: 'public/client.html', }), new webpack.DefinePlugin({ 'process.env': JSON.stringify(process.env), }), - new WorkboxPlugin.GenerateSW(), + // new WorkboxPlugin.GenerateSW(), ], |
