Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    component-stringpublic

    component-string

    Component plugin to allow you require files as strings.

    Installation

    npm install component-string
    

    Usage

    component build --use component-string
    

    Add a strings section to your component.json

    {
      "name": "foo",
      "scripts": ["index.js"],
      "strings": ["template.html"]
    }
    

    Now in your index.js file you can require it:

    var template = require('./template.html');
    

    Keywords

    none

    install

    npm i component-string

    Downloadsweekly downloads

    10

    version

    0.1.2

    license

    none

    last publish

    collaborators

    • avatar