1.0.2 โข Published 5 years ago
file-rawtxt-loader v1.0.2
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 ๅฎๆนๆๅกใ