I've got a custom Polymer element polymer install element
call it <x-custom-element>
once created i'm unable to polymer serve
until I change the links to reference the bower components in the elements folder.
When I publish the element to my git repository I need to change the references in the elements <links rel="import" href="bower_components/"> to
href="../` or what ever the link is to use the bower_components folder form the directory that install the element.
For example to be able to serve the file via polymer serve
, with this file structure
- bower.json
- bower_components/
- test/
- temo/
- x-custom-element.html
The links in x-custom-element.html
need to refer to /bower_components/*
But to be able to be usable as a bower import I must change the references to ../*
Is there anyway to remedy this process? How should you approach this problem.
Create a script to change all the link back and forth? What other options do I have?