This repository has been archived by the owner on Oct 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Better examples of usage #37
Comments
A great thing about this plug-in is that it's simple to use. import text from './file.txt!text';
console.info(text); Or via configuration (preferred as it abstracts the specific loader allowing you to swap it out while at the same time keeping your code cleaner) SystemJS.config({
meta: {
"*.txt": {
"loader": "text"
}
}
}); and then import text from './file.txt';
console.info(text); This really covers most of what you'll do with the plugin. |
With the latest version 5 of systemjs this plugin does not work anymore. |
Anyone knows the solution to have string from imported templates in transpiled files without rollup or webpack, only tsc/ttsc way? |
@viT-1 just using template strings is probably the best bet at this stage since HTML modules spec will be a while yet. |
Instead this I had to workaround (for vue templates) with bundling templates & ajax they into the DOM =( |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Would be helpful if there were more examples of practical use in the README.md.
The text was updated successfully, but these errors were encountered: