1.0.2 โ€ข Published 4 years ago

file-rawtxt-loader v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

file-rawtxt-loader

File content loader, or use raw loader.

description

๐Ÿ’ฟ Installation

npm install --save-dev file-rawtxt-loader

๐Ÿ“– Usage

webpack.config.js

  • ๐Ÿ”ง simple use
// webpack 1
loaders: [
  { test: /\.txt$/, loader: "file-rawtxt-loader" }
]

// webpack 2
rules: [
  { test: /\.txt$/, use: 'file-rawtxt-loader'}
]
  • ๐Ÿ”ง inline use
var fileContent = require("file-rawtxt-loader!./file.txt");
// => returns file.txt content as string
var jsContent = require("file-rawtxt-loader!./file.js");
// => returns file.js content as string

๐Ÿ’Ž author

ilex.h

License

MIT

changelog

  • file-rawtxt-loader ไบŽ 20171010 18:56 ๅˆ›ๅปบไบŽ็งๆœใ€‚
  • 20200721 09:20 ๅ‘ๅธƒๆ›ดๆ–ฐๅŒ…
  • 20201119 ๆ›ดๅไธบ file-rawtxt-loader, ๅŒๆ—ถๅ‘ๅธƒไธŽ npm ๅฎ˜ๆ–นๆœๅŠกใ€‚