whatever-loader
v0.0.5
Published
Load whatever u wanna loader with webpack.
Downloads
4
Readme
whatever-loader
Loading whatever u wanna load with webpack.
Install
npm install --save-dev whatever-loader
Usage
The whatever-loader
can load whatever file to your program, you will get the file content.
file.js
import tpl from 'file.tpl';
import json from 'json-file.json';
import conf from 'config.conf';
webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.tpl$/,
use: [ 'whatever-loader' ]
},
{
test: /\.json$/,
use: [ 'whatever-loader' ]
},
{
test: /\.conf$/,
use: [ 'whatever-loader' ]
}
]
}
}