Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

Better examples of usage #37

Description

@lmj0011

Would be helpful if there were more examples of practical use in the README.md.

Activity

  1. changed the title [-]Better examples of use[/-] [+]Better examples of usage[/+] on Jul 25, 2016
  2. aluanhaddad commented on Jul 27, 2017

    @aluanhaddad

    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.

  3. Bluejanis commented on Aug 14, 2019

    @Bluejanis

    With the latest version 5 of systemjs this plugin does not work anymore.

  4. viT-1 commented on Aug 22, 2019

    @viT-1

    Anyone knows the solution to have string from imported templates in transpiled files without rollup or webpack, only tsc/ttsc way?

  5. guybedford commented on Aug 23, 2019

    @guybedford
    Member

    @viT-1 just using template strings is probably the best bet at this stage since HTML modules spec will be a while yet.

  6. viT-1 commented on Aug 23, 2019

    @viT-1

    Instead this I had to workaround (for vue templates) with bundling templates & ajax they into the DOM =(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions