@webpack-loader/raw

1.0.0-alpha.0 • Public • Published

npm node deps test coverage code style chat

Raw Loader

Import files/contents as a raw {String}

Install

npm i -D @webpack-loader/raw

Usage

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.txt$/,
        use: '@webpack-loader/raw'
      }
    ]
  }
}
import txt from './file.txt'

Readme

Keywords

none

Package Sidebar

Install

npm i @webpack-loader/raw

Weekly Downloads

0

Version

1.0.0-alpha.0

License

MIT

Unpacked Size

4.38 kB

Total Files

5

Last publish

Collaborators

  • michael-ciniawsky