forked from tim2000s/oref0
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathreadme_webpack
41 lines (24 loc) · 1.08 KB
/
readme_webpack
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Instructions edit js-files
Fork oref0
Change the code as you please in the folder lib, (for instance determine-basal.js).
Copy the ”webpack.config” file from FreeAPS X/scripts to your ”oref0” -folder (same folder where the ”lib” older is located)
In terminal cd into the same ”oref0” folder
Install Node. For Mac OS pkg:
64-bit
Install web pack (stay in same directory as before in terminal):
npm install --save-dev webpack
Install webpack CLI:
npm install -D webpack-cli
Run web pack command:
npx webpack
Open your oref0 folder in Finder.
Open the ”dist” folder.
Copy the js file/s you changed
Open freeaps x folder in Finder.
Open FreeAPS/Resources folder.
Open javascript/bundle folder.
Replace the current js.file or files with the copied changed minimized files.
Make sure the new files have exactly the same file name as the one you moved/deleted/replaced.
Some files are renamed when compressed. For instance determine-basal.js is renamed to determineBasal.js. You need to change the name back before pasting into FAX.
Build FreeAPS X again.
That’s it!