diff options
| author | stonedDiscord <stoned@derpymail.org> | 2019-07-16 18:19:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-16 18:19:40 +0200 |
| commit | b0394289a591417ed2300b076da205b3fa03750d (patch) | |
| tree | 6dd502e5d7e09123f3f107d820ec176782a8b6a0 /webpack.config.js | |
| parent | 93a4462c3c2f333f9bc54296847d628d6d46bdb1 (diff) | |
| parent | c4c754944c209fc365e04aa17e6bd3a73c504e26 (diff) | |
Merge pull request #4 from AttorneyOnline/master
i'm sure there is a way to do this correctly
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 20 |
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 |
