Skip to content

Instantly share code, notes, and snippets.

@usergenic
Last active December 9, 2016 01:45
Show Gist options
  • Save usergenic/d52a94a9927266ecc4c4f25b8cf6d9dc to your computer and use it in GitHub Desktop.
Save usergenic/d52a94a9927266ecc4c4f25b8cf6d9dc to your computer and use it in GitHub Desktop.
Verifying assetpath behavior with different vulcanize scenarios
<!-- ./index.html -->
<link rel="import" href="src/elements/ing-app.html">
<ing-app></ing-app>
<!-- ./src/elements/ing-app.html -->
<link rel="import" href="../../bower_components/ing-feedback/ing-feedback.html">
<dom-module id="ing-app"></dom-module>
<!-- ./bower_components/ing-feedback/ing-feedback-phone.html -->
<dom-module id="ing-feedback-phone"></dom-module>
<!-- ./bower_components/ing-feedback/ing-feedback.html -->
<link rel="import" href="ing-feedback-phone.html">
<dom-module id="ing-feedback"></dom-module>
<!-- $ vulcanize ./index.html -->
<html>
<head><meta charset="UTF-8"></head>
<body>
<div hidden="" by-vulcanize="">
<dom-module id="ing-feedback-phone" assetpath="bower_components/ing-feedback/">
</dom-module>
<dom-module id="ing-feedback" assetpath="bower_components/ing-feedback/">
</dom-module>
<dom-module id="ing-app" assetpath="src/elements/">
</dom-module>
</div>
<ing-app></ing-app>
</body>
</html>
<!-- $ vulcanize ./src/elements/ing-app.html -->
<!-- using 1.15.1 -->
<!-- src/elements/ing-app.html -->
<html>
<head><meta charset="UTF-8"></head>
<body>
<div hidden="" by-vulcanize="">
<dom-module id="ing-feedback-phone" assetpath="../../bower_components/ing-feedback/">
</dom-module>
<dom-module id="ing-feedback" assetpath="../../bower_components/ing-feedback/">
</dom-module>
</div>
<dom-module id="ing-app"></dom-module>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment