For a web site using Polymer, where to place html files? -
i developping web site using google polymer framework. want ask if can place src html files in folders other default src folder?
for example, have many html files in default src folder. , hard manage file names.
or have original componet html files want place somewhere other default src folder.
i know possible test projects. worry somehow prevent final benefitting polymer framework.
yes, organize files directories, , don't need under src/
. example, given polymer-cli-generated app-drawer-template
, move my-view1.html
own directory @ top-level of project:
. ├── readme.md ├── images │ ├── app-icon-144.png │ ├── app-icon-32.png │ └── app-icon.svg ├── index.html ├── manifest.json ├── my-view1* │ └── my-view1.html* ├── polymer.json* ├── service-worker.js ├── src │ ├── my-app.html* │ ├── my-icons.html │ ├── my-view2.html │ └── my-view3.html ├── sw-precache-config.js └── test ├── index.html └── my-view1.html*
you'd have tweak files (see starred files in list above) expect my-view1.html
under src/
, , update paths (e.g., html imports) in my-view1.html
. otherwise, polymer build
yields cryptic errors when can't resolve path.
Comments
Post a Comment