Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit d13b970

Browse files
author
Kate Jeffreys
committed
Update the advanced tools page
1 parent 5dcf341 commit d13b970

File tree

1 file changed

+3
-74
lines changed

1 file changed

+3
-74
lines changed

app/2.0/docs/tools/advanced.md

+3-74
Original file line numberDiff line numberDiff line change
@@ -74,79 +74,8 @@ Source: [github.com/Polymer/web-component-tester](https://github.com/Polymer/web
7474

7575
## Build and optimization {#build}
7676

77-
This section lists commands used by the Polymer CLI command `polymer build`.
78-
You can use them directly if you need to customize your build process.
79-
80-
### <b>vulcanize</b>—optimize HTML Imports {#vulcanize}
81-
82-
[vulcanize](https://github.com/polymer/vulcanize) is a tool for crushing an HTML Import file and its dependent HTML Imports into one file. Think of it as a build step for web components. Vulcanize reduces the number of requests made by your application by concatenating imports into a single file.
83-
84-
Install:
85-
86-
npm install -g vulcanize
87-
88-
Usage (CLI):
89-
90-
vulcanize --inline-scripts --inline-css --strip-comments \
91-
elements.html > elements.build.html
92-
93-
Vulcanize can be used from the CLI or ran programmatically from Node, `gulp-vulcanize`, or `grunt-vulcanize`. Read more about vulcanize in [Optimize for production](optimize-for-production).
94-
95-
Source: [github.com/Polymer/vulcanize](https://github.com/Polymer/vulcanize)
96-
97-
Related tools
98-
99-
- [gulp-vulcanize](https://www.npmjs.com/package/gulp-vulcanize)
100-
- [grunt-vulcanize](https://www.npmjs.com/package/grunt-vulcanize)
101-
- [broccoli-vulcanize](https://www.npmjs.com/package/broccoli-vulcanize)
102-
103-
### <b>crisper</b>—extract inline script from an HTML Import {#crisper}
104-
105-
[crisper](https://github.com/PolymerLabs/crisper) is a tool for extracting inline scripts from an HTML file and splitting them into a separate file. This is useful for cases where you need CSP compliance.
106-
107-
Install:
108-
109-
npm install -g crisper
110-
111-
Usage:
112-
113-
crisper --html build.html --js build.js index.html
114-
115-
Source: [github.com/PolymerLabs/crisper](https://github.com/PolymerLabs/crisper)
116-
117-
Related tools
118-
119-
- [gulp-crisper](https://www.npmjs.com/package/gulp-crisper)
120-
- [grunt-crisper](https://www.npmjs.com/package/grunt-crisper)
121-
122-
### <b>polyclean</b>—minify JS/CSS/HTML {#polyclean}
123-
124-
[polyclean](https://github.com/PolymerLabs/polyclean) provides basic Gulp plugins for minifying and cleaning JS, CSS, and HTML.
125-
126-
Install:
127-
128-
npm install -g polyclean
129-
130-
Usage:
131-
132-
vulcanize --inline-css --inline-scripts index.html | polyclean
133-
134-
Source: [github.com/PolymerLabs/polyclean](https://github.com/PolymerLabs/polyclean)
135-
136-
### <b>polybuild</b>—all-in-one build tool for optimizing apps {#polybuild}
137-
138-
*Equivalent to Polymer CLI command `polymer build`.*
139-
140-
[polybuild](https://github.com/PolymerLabs/polybuild) is an all-in-one build tool that combines vulcanize, crisper, and polyclean. Although less flexible than using the tools individually, polybuild is an easy solution if you want quick defaults.
141-
142-
Install:
143-
144-
npm install -g polybuild
145-
146-
Usage:
147-
148-
polybuild index.html --maximum-crush
149-
150-
Source: [github.com/PolymerLabs/polybuild](https://github.com/PolymerLabs/polybuild)
77+
You can use `polymer-build` from the command line if you need to customize your build process.
15178

79+
<a href="https://github.com/Polymer/polymer-build/blog/master/README.md" target="_blank">See the polymer-build README for instructions</a>.
15280

81+
Source: [github.com/Polymer/polymer-build](https://github.com/Polymer/polymer-build)

0 commit comments

Comments
 (0)