The compiled build/default/index.html file's CSS/HTML/JS content should be minified, and the JS code should be ES5, not ES6.
Actual Results
No minification done, and JS code is in ES6 just like the source files, like if only the --bundle option was taken into account.
Additional information
However it works when I put these build options into polymer.json. And if I pass the --verbose flag I get different debug outputs between passing the flags from the CLI and writing them down in the polymer file.
polymer build --verbose with build options in polymer.json :
Description
polymer build --bundle --css-minify --html-minify --js-compile --js-minify
outputs the same result aspolymer build --bundle
.Versions & Environment
1.2.0
v7.10.0
Linux Mint 17.3 Rosa
Steps to Reproduce
index.html
file with the following content :/src/polymer2-app.html
file with the following content :polymer.json
file with the following content :polymer build --bundle --css-minify --html-minify --js-compile --js-minify
Expected Results
The compiled
build/default/index.html
file's CSS/HTML/JS content should be minified, and the JS code should be ES5, not ES6.Actual Results
No minification done, and JS code is in ES6 just like the source files, like if only the
--bundle
option was taken into account.Additional information
However it works when I put these build options into
polymer.json
. And if I pass the--verbose
flag I get different debug outputs between passing the flags from the CLI and writing them down in the polymer file.polymer build --verbose
with build options inpolymer.json
:polymer build --bundle --css-minify --html-minify --js-compile --js-minify --verbose
:As you can see, build options passed via the CLI are handled differently than options taken from the polymer file.