file-to-string-loader

0.0.0 • Public • Published

file-to-string-loader

Webpack loader that converts file contents to string and exports

Config

{ test: /\.html/,  loader: 'file-to-string-loader' }

Example

var content = require('./foo.html')

The contents of foo.html will be exported as a string, therefore making content a string.

/file-to-string-loader/

    Package Sidebar

    Install

    npm i file-to-string-loader

    Weekly Downloads

    14

    Version

    0.0.0

    License

    MIT

    Last publish

    Collaborators

    • chrisabrams