File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -219,12 +219,17 @@ import "@polymer/paper-button/paper-button.html";
219219### Assets
220220
221221``` html
222+ <!-- imports/ui/path/to/element.html -->
222223<img src =" sample-image.png" > <!-- Works!!-->
223224<iron-image src =" sample-image.png" ><iron-image > <!-- Works!!-->
224- <any-element src =" sample-image.png" ><any-element > <!-- Works!!-->
225+ <any-element src =" sample-image.png" ><any-element > <!-- Works!! src = imports/ui/path/to/sample-image.png -->
226+ <any-element src =" ../sample-image.png" ><any-element > <!-- Works!! src = imports/ui/path/sample-image.png-->
225227<any-element src =" [[image]]" ><any-element > <!-- Does not work!! if you want this to work use image = path/from/root/to/image.png -->
226228<any-element src =" {{image}}" ><any-element > <!-- Does not work!! if you want this to work use image = path/from/root/to/image.png -->
227- ```
229+
230+ <!-- files in public/ folder -->
231+ <any-element src =" /sample-image.png" ><any-element > <!-- Works!! src = /sample-image.png -->
232+ ```
228233works inside html.
229234
230235File types we supports https://github.com/meteorwebcomponents/synthesis/blob/master/packages/synthesis-file/plugin/synthesis-file.js#L19 .
You can’t perform that action at this time.
0 commit comments