Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactoring: update relative paths in html templates when moving custom elements #14

Open
atsu85 opened this issue Sep 7, 2016 · 1 comment

Comments

@atsu85
Copy link
Contributor

atsu85 commented Sep 7, 2016

When i have a page and custom element files in one folder:

└───pages
        ig-register.html (custom element)
        ig-register.ts (custom element)
        register.html (page)
        register.ts (page)

I move them into subfolder

└───pages
    └───register
            ig-register.html
            ig-register.ts
            register.html
            register.ts

then relative paths in TypeScript file imports are updated correctly, but require tags should also be changed from

    <require from="../../../common/customElements/form/ig-input"></require>

to

    <require from="../../../../common/customElements/form/ig-input"></require>
@denofevil
Copy link
Owner

@atsu85 this should be covered by second part of #3, but let's keep it open so I won't forget to check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants