Closed abdonrd closed 5 years ago
I have a components library like:
my-components/ |-- bower_components/ |-- components/ | |-- my-button/ | | |-- demo/ | | |-- test/ | | |-- my-button.html | |-- my-checkbox/ | | |-- ... | |-- ... |-- analysis.json |-- bower.json |-- docs.html
And it works with polymer serve.
polymer serve
But... How to build it to deploy on a server? I would like something like domain.com/docs.html or domain.com/docs/ (better).
domain.com/docs.html
domain.com/docs/
I have tried polymer build using this polymer.json config but it's not enough:
polymer build
polymer.json
{ "entrypoint": "docs.html", "sources": [ "components/**/*", "bower.json" ], "extraDependencies": [ "bower_components/webcomponentsjs/*.js", "analysis.json" ], "lint": { "rules": ["polymer-2"] } }
Maybe related with https://github.com/PolymerElements/iron-doc-viewer/issues/162.
Closing and old issue.
I have a components library like:
And it works with
polymer serve
.But... How to build it to deploy on a server? I would like something like
domain.com/docs.html
ordomain.com/docs/
(better).I have tried
polymer build
using thispolymer.json
config but it's not enough: