Browse Source

Update doc about npm run build:prod

Phyks (Lucas Verney) 2 months ago
parent
commit
9e495bb63e
2 changed files with 8 additions and 1 deletions
  1. 5
    1
      doc/0.getting_started.md
  2. 3
    0
      doc/1.production.md

+ 5
- 1
doc/0.getting_started.md View File

@@ -219,7 +219,11 @@ provided that you name each of them uniquely.
219 219
 If you want to build the web assets, you can use `npm run build:dev`
220 220
 (respectively `npm run watch:dev` to build continuously and monitor changes in
221 221
 source files). You can use `npm run build:prod` (`npm run watch:prod`) to do
222
-the same in production mode (with minification etc).
222
+the same in production mode (main difference is minification of generated
223
+source code).
224
+
225
+**Note**: If `npm run build:prod` fails, you can fall back to `npm run
226
+build:dev` safely.
223 227
 
224 228
 
225 229
 ## Upgrading

+ 3
- 0
doc/1.production.md View File

@@ -50,6 +50,9 @@ _Note 2_: As of 2019-03-13, building the webapp requires libpng-dev to be able t
50 50
 
51 51
     sudo apt install libpng-dev
52 52
 
53
+_Note 3_: If `npm run build:prod` fails, you can fall back to `npm run
54
+build:dev` safely.
55
+
53 56
 ## Use an alternative Bottle backend (production)
54 57
 
55 58
 This is the simplest option, offers good performances but is less scalable.