Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(798)

Side by Side Diff: docs/vulcanize.md

Issue 2525163002: Add the exact versions to the vulcanize.md install command. (Closed)
Patch Set: wrap Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Vulcanizing Chrome Polymer UIs 1 # Vulcanizing Chrome Polymer UIs
2 2
3 `vulcanize` is an npm module used to combine resources. In order to make the 3 `vulcanize` is an npm module used to combine resources. In order to make the
4 Material Design downloads and history pages sufficiently fast, we run vulcanize 4 Material Design downloads and history pages sufficiently fast, we run vulcanize
5 on the source files to combine them and reduce blocking load/parse time. 5 on the source files to combine them and reduce blocking load/parse time.
6 6
7 ## Required software 7 ## Required software
8 8
9 Vulcanization currently requires: 9 Vulcanization currently requires:
10 10
(...skipping 10 matching lines...) Expand all
21 [here](https://docs.npmjs.com/getting-started/installing-node). 21 [here](https://docs.npmjs.com/getting-started/installing-node).
22 22
23 We recommend telling npm where to store downloaded modules: 23 We recommend telling npm where to store downloaded modules:
24 24
25 ```bash 25 ```bash
26 $ npm config set -g prefix "$HOME/node_modules" 26 $ npm config set -g prefix "$HOME/node_modules"
27 ``` 27 ```
28 28
29 Then install the required modules: 29 Then install the required modules:
30 30
31 ```bash 31 bash $ npm install -g crisper@2.0.1 vulcanize@1.14.8 \
32 $ npm install -g crisper vulcanize uglifyjs polymer-css-build 32 uglifyjs@2.4.10 polymer-css-build@0.0.6
tsergeant 2016/11/24 03:30:29 I don't recognize this syntax? The regular github-
calamity 2016/11/24 06:03:04 Done.
33 ```
34 33
35 Ultimately, all that is required to run this script is that the node binaries 34 Ultimately, all that is required to run this script is that the node binaries
36 listed above are on your $PATH. 35 listed above are on your $PATH.
37 36
38 ## Combining resources with vulcanize 37 ## Combining resources with vulcanize
39 38
40 To combine all the CSS/HTML/JS for all pages which use vulcanize, making them 39 To combine all the CSS/HTML/JS for all pages which use vulcanize, making them
41 production fast, you can run the command: 40 production fast, you can run the command:
42 41
43 ```bash 42 ```bash
44 $ chrome/browser/resources/vulcanize.py # from src/ 43 $ chrome/browser/resources/vulcanize.py # from src/
45 ``` 44 ```
46 45
47 This should overwrite the following files: 46 This should overwrite the following files:
48 47
49 - chrome/browser/resources/md_downloads/ 48 - chrome/browser/resources/md_downloads/
50 - vulcanized.html (all <link rel=import> and stylesheets inlined) 49 - vulcanized.html (all <link rel=import> and stylesheets inlined)
51 - crisper.js (all JavaScript, extracted from vulcanized.html) 50 - crisper.js (all JavaScript, extracted from vulcanized.html)
52 - chrome/browser/resources/md_history/ 51 - chrome/browser/resources/md_history/
53 - app.vulcanized.html 52 - app.vulcanized.html
54 - app.crisper.js 53 - app.crisper.js
55 54
56 ## Testing downloads without vulcanizing 55 ## Testing downloads without vulcanizing
57 56
58 Build with `use_vulcanize = false` in your gn args to build without vulcanizing. 57 Build with `use_vulcanize = false` in your gn args to build without vulcanizing.
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698