You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -32,7 +34,10 @@ Remove `blaze-html-templates` (or remove the html compiler you are using).
32
34
33
35
Install synthesis
34
36
35
-
`meteor add mwc:synthesis`
37
+
```sh
38
+
meteor add mwc:synthesis #compiles html files
39
+
meteor add mwc:synthesis-file #compiles asset files for <img src="image.png"> to work.
40
+
```
36
41
37
42
synthesis is a meteor 1.3+ package. for 1.2 support use [mwc:compiler](https://github.com/meteorwebcomponents/compiler)
38
43
@@ -71,7 +76,9 @@ You can import html using
71
76
72
77
2.`<link rel="import" href="./component.html"> `from html files
73
78
74
-
> Please note that `import 'package/package.html;'` imports from node_modules directory while `<link rel="import" href="package/package.html">` is the same as `import "./package/package.html";`. This is kept like this to go through polymer components in which dependency files inside the same folder are imported as `<link rel="import" href="dependency.html">`
79
+
> Please note that `import 'package/package.html;'` imports from node_modules directory while `<link rel="import" href="package/package.html">` is the same as `import "./package/package.html";`. This is kept like this to go through polymer components in which dependency files inside the same folder are imported as `<link rel="import" href="dependency.html">`.
80
+
81
+
> If you want to import scripts/stylesheets/html from public use `src="/path/to/my/file"`. `src="path/to/my/file"` is interpreted as `import "./path/to/my/file"`.
0 commit comments