From d13b970cef1b44133c25e118a166db9d3cc34bfa Mon Sep 17 00:00:00 2001 From: Kate Jeffreys Date: Tue, 4 Oct 2016 12:07:33 -0700 Subject: [PATCH] Update the advanced tools page --- app/2.0/docs/tools/advanced.md | 77 ++-------------------------------- 1 file changed, 3 insertions(+), 74 deletions(-) diff --git a/app/2.0/docs/tools/advanced.md b/app/2.0/docs/tools/advanced.md index 03ef2ef9d5..1ac519cedb 100644 --- a/app/2.0/docs/tools/advanced.md +++ b/app/2.0/docs/tools/advanced.md @@ -74,79 +74,8 @@ Source: [github.com/Polymer/web-component-tester](https://github.com/Polymer/web ## Build and optimization {#build} -This section lists commands used by the Polymer CLI command `polymer build`. -You can use them directly if you need to customize your build process. - -### vulcanize—optimize HTML Imports {#vulcanize} - -[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. - -Install: - - npm install -g vulcanize - -Usage (CLI): - - vulcanize --inline-scripts --inline-css --strip-comments \ - elements.html > elements.build.html - -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). - -Source: [github.com/Polymer/vulcanize](https://github.com/Polymer/vulcanize) - -Related tools - -- [gulp-vulcanize](https://www.npmjs.com/package/gulp-vulcanize) -- [grunt-vulcanize](https://www.npmjs.com/package/grunt-vulcanize) -- [broccoli-vulcanize](https://www.npmjs.com/package/broccoli-vulcanize) - -### crisper—extract inline script from an HTML Import {#crisper} - -[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. - -Install: - - npm install -g crisper - -Usage: - - crisper --html build.html --js build.js index.html - -Source: [github.com/PolymerLabs/crisper](https://github.com/PolymerLabs/crisper) - -Related tools - -- [gulp-crisper](https://www.npmjs.com/package/gulp-crisper) -- [grunt-crisper](https://www.npmjs.com/package/grunt-crisper) - -### polyclean—minify JS/CSS/HTML {#polyclean} - -[polyclean](https://github.com/PolymerLabs/polyclean) provides basic Gulp plugins for minifying and cleaning JS, CSS, and HTML. - -Install: - - npm install -g polyclean - -Usage: - - vulcanize --inline-css --inline-scripts index.html | polyclean - -Source: [github.com/PolymerLabs/polyclean](https://github.com/PolymerLabs/polyclean) - -### polybuild—all-in-one build tool for optimizing apps {#polybuild} - -*Equivalent to Polymer CLI command `polymer build`.* - -[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. - -Install: - - npm install -g polybuild - -Usage: - - polybuild index.html --maximum-crush - -Source: [github.com/PolymerLabs/polybuild](https://github.com/PolymerLabs/polybuild) +You can use `polymer-build` from the command line if you need to customize your build process. +See the polymer-build README for instructions. +Source: [github.com/Polymer/polymer-build](https://github.com/Polymer/polymer-build) \ No newline at end of file