1.0.2 โข Published 3 years ago
@aptray/file-content-loader v1.0.2
@aptray/file-content-loader
The file raw content loader. You can also use raw-loader
Since the module was only published in private service at the earliest, the module with the same name will appear on the official website later, resulting in problems in internal download, so a scope version will be released.
You can also use the file-rawtxt-loader module directly.
description
๐ฟ Installation
npm install --save-dev @aptray/file-content-loader
๐ Usage
webpack.config.js
- ๐ง simple use
// webpack 1
loaders: [
{ test: /\.txt$/, loader: "@aptray/file-content-loader" }
]
// webpack 2
rules: [
{ test: /\.txt$/, use: '@aptray/file-content-loader'}
]
- ๐ง inline use
var fileContent = require("@aptray/file-content-loader!./file.txt");
// => returns file.txt content as string
var jsContent = require("@aptray/file-content-loader!./file.js");
// => returns file.js content as string
๐ author
ilex.h
Similar projects
file-rawtxt-loader text-loader raw-loader
License
MIT
changelog
file-content-loader
ไบ20171010 18:56
ๅๅปบไบ็งๆใ- 20200721 09:20 ๅๅธๆดๆฐๅ
- 20210606 ๆดๅไธบ
@aptray/file-content-loader
, ๅๆถๅๅธไธ npm ๅฎๆนๆๅกใ