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

Importing html template with 1.5 #4019

Closed
mwilc0x opened this issue Jul 24, 2015 · 2 comments
Closed

Importing html template with 1.5 #4019

mwilc0x opened this issue Jul 24, 2015 · 2 comments

Comments

@mwilc0x
Copy link

mwilc0x commented Jul 24, 2015

Hi, I would like to be able to import an html file. However when I try this doing something like:

import template from './home.html';

I get Cannt find module './home.html'

Is there any way to do this currently in 1.5?

@mwilc0x
Copy link
Author

mwilc0x commented Jul 24, 2015

Closing as it's being discussed here #2709

@harryjubb
Copy link

https://github.com/systemjs/plugin-text

import template from 'app/index/index.template.html!text';

Works for me.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants