file-rawtxt-loader
v1.0.2
Published
the file raw content loader. You can also use [raw-loader]
Downloads
59
Maintainers
Readme
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 官方服务。