vulcanize is an npm module used to combine resources. In order to make the Material Design downloads and history pages sufficiently fast, we run vulcanize on the source files to combine them and reduce blocking load/parse time.
Vulcanization currently requires:
npm list -g crisper)
npm list -g polymer-css-build)
For instructions on installing node and npm, see here.
We recommend telling npm where to store downloaded modules:
$ npm config set -g prefix "$HOME/node_modules"
Then install the required modules:
$ npm install -g crisper vulcanize uglifyjs polymer-css-build
Ultimately, all that is required to run this script is that the node binaries listed above are on your $PATH.
To combine all the CSS/HTML/JS for all pages which use vulcanize, making them production fast, you can run the command:
$ chrome/browser/resources/vulcanize.py # from src/
This should overwrite the following files:
use_vulcanize = false in your gn args to build without vulcanizing.