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

Side by Side Diff: chrome/browser/resources/vulcanize_readme.md

Issue 1870853003: Vulcanize settings (hacky and dirty, don't use) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git squash commit. Created 4 years, 5 months 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
OLDNEW
1 # Vulcanizing Material Design downloads 1 # Vulcanizing Material Design WebUI
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 page sufficiently fast, we run vulcanize on the source 4 Material Design downloads and settings pages sufficiently fast, we run vulcanize
5 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
11 - node.js: >= v4.4.2 (can be found with `node --version`) 11 - node.js: >= v4.4.2 (can be found with `node --version`)
12 - npm: >= 1.3.10 (can be found with `npm --version`) 12 - npm: >= 1.3.10 (can be found with `npm --version`)
13 - vulcanize: 1.14.8 (can be found with `vulcanize --version`) 13 - vulcanize: 1.14.8 (can be found with `vulcanize --version`)
14 - crisper: 2.0.1 (can be found with `npm list -g crisper`) 14 - crisper: 2.0.1 (can be found with `npm list -g crisper`)
15 15
(...skipping 12 matching lines...) Expand all
28 28
29 ```bash 29 ```bash
30 $ npm install -g crisper vulcanize 30 $ npm install -g crisper vulcanize
31 ``` 31 ```
32 32
33 Ultimately, all that is required to run this script is that `crisper` and 33 Ultimately, all that is required to run this script is that `crisper` and
34 `vulcanize` are on your `$PATH`. 34 `vulcanize` are on your `$PATH`.
35 35
36 ## Combining resources with vulcanize 36 ## Combining resources with vulcanize
37 37
38 To combine all the CSS/HTML/JS for the downloads page to make it production 38 To combine all the CSS/HTML/JS for the Material Design downloads and ettings
39 fast, you can run the commands: 39 pages to make them production fast, you can run the command:
40 40
41 ```bash 41 ```bash
42 $ chrome/browser/resources/md_downloads/vulcanize.py # from src/ 42 $ chrome/browser/resources/vulcanize.py # from src/
43 ``` 43 ```
44 44
45 This should overwrite the following files: 45 This should overwrite the following files:
46 46
47 - chrome/browser/resources/md_downloads/ 47 - chrome/browser/resources/md_downloads/
48 - vulcanized.html (all <link rel=import> and stylesheets inlined) 48 - vulcanized.html (all <link rel=import> and stylesheets inlined)
49 - crisper.js (all JavaScript, extracted from vulcanized.html) 49 - crisper.js (all JavaScript, extracted from vulcanized.html)
50 - chrome/browser/resources/settings/
51 - vulcanized.html (all <link rel=import> and stylesheets inlined)
52 - crisper.js (all JavaScript, extracted from vulcanized.html)
50 53
51 ## Testing downloads without vulcanizing 54 ## Testing pages without vulcanizing
52 55
53 Build with "use_vulcanize=0" in your GYP_DEFINES to build downloads without 56 Build with "use_vulcanize=0" in your GYP_DEFINES to build downloads and settings
54 vulcanizing. 57 without vulcanizing.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698