forked from openaps/oref0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
27 lines (26 loc) · 785 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const path = require('path');
const TerserPlugin = require("terser-webpack-plugin");
module.exports = {
mode: 'production',
entry: {
iob: './lib/iob/index.js',
meal: './lib/meal/index.js',
"determineBasal": './lib/determine-basal/determine-basal.js',
"glucoseGetLast": './lib/glucose-get-last.js',
"basalSetTemp": './lib/basal-set-temp.js',
autosens: './lib/determine-basal/autosens.js',
profile: './lib/profile/index.js',
"autotunePrep": './lib/autotune-prep/index.js',
"autotuneCore": './lib/autotune/index.js'
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].js',
libraryTarget: 'var',
library: 'freeaps_[name]'
},
optimization: {
minimize: true,
minimizer: [new TerserPlugin()],
},
};