diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-03-21 22:30:08 +0100 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-03-21 22:30:08 +0100 |
| commit | 77eabb9fe2ac287719452607f2bd4ac3573ee54b (patch) | |
| tree | 76593c92a8964548c162b3de4baaf5176d6ba499 /webpack.config.js | |
| parent | ef69cb63da031129db046d9b5f1f5b9feb57ee34 (diff) | |
move master.js to typescript
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js index 5c8b1de..68546c3 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -15,13 +15,16 @@ 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'), }, node: { global: true, }, devtool: 'source-map', + resolve: { + extensions: ["", ".webpack.js", ".web.js", ".ts", ".tsx", ".js"], + }, devServer: { static: { directory: path.join(__dirname, 'webAO'), @@ -55,6 +58,9 @@ module.exports = { }, }, }, + { test: /\.tsx?$/, loader: "ts-loader" }, + // All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'. + { test: /\.js$/, loader: "source-map-loader" }, ], }, output: { |
