aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2019-07-01 21:48:00 -0500
committeroldmud0 <oldmud0@users.noreply.github.com>2019-07-01 21:48:00 -0500
commit393142f7001269140897a8ca191884e8c29bb699 (patch)
tree04630080d143a2432f1aa9df9c7689bc078e5354 /webpack.config.js
parent3120cca6945ee8fa1dda40370fc9ee74265dc982 (diff)
(See commit message)
This commit includes another pass of refactoring to webAO, but could not be tested because it has become virtually impossible to compile GoldenLayout correctly and have it be detected as a module by webpack. GoldenLayout has also been dormant for an alarming amount of time, and its new maintainers have not been doing a stellar job releasing bug fixes. So, I give up trying to build webAO. It's a heaping mess written in vanilla HTML/CSS/JS without the use of a proper web framework, dependent on a raw TCP protocol designed 7 years ago, only to be wrapped with yet another protocol that only half the servers *want* to support, because webAO is so bad that only incompetent players would want to keep using it. (Unless you are a Chromebook player, in which case I am sorry for hurling insults at you.) webAO started off as an experiment by sD, but became real only because I made it real. I was the one who added support for it for tsuserver; I was the one who made the UI vaguely acceptable; I was the one who added a button for it on the home page. It's really my fault that this abomination lives on. I should have learned a legitimate web framework and rewritten it when I had the chance.
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js20
1 files changed, 17 insertions, 3 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 8032471..78d68a1 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,9 +1,15 @@
+/* eslint-env node */
+
+const path = require('path');
+
module.exports = {
entry: {
ui: './webAO/ui.js',
- client: './webAO/client.js'
+ client: './webAO/client.js',
+ master: './webAO/master.js'
},
output: {
+ path: path.resolve(__dirname, 'webAO'),
filename: '[name].b.js'
},
module: {
@@ -14,7 +20,15 @@ module.exports = {
use: {
loader: 'babel-loader',
options: {
- presets: ['@babel/preset-env']
+ presets: [
+ [
+ '@babel/preset-env', {
+ useBuiltIns: 'usage',
+ targets: 'defaults',
+ corejs: 3
+ }
+ ]
+ ]
}
}
}
@@ -22,4 +36,4 @@ module.exports = {
},
devtool: 'source-map'
-} \ No newline at end of file
+}; \ No newline at end of file