aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorcaleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu>2022-03-21 18:09:06 -0400
committercaleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu>2022-03-21 18:09:06 -0400
commit8b01d1792b49c973670dc18ea370ca4845b0e7bb (patch)
tree0570e4f9258e750614aecc640b07d53a0a9fb23b /webpack.config.js
parent79db229a94aa3f407399158470e3d027d2b035e8 (diff)
parentf4b708599b71b6e96e86eabd4099dd61f669b4bf (diff)
Merge branch 'master' of https://github.com/AttorneyOnline/webAO into custom-ini
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js8
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: {