whatever-loader

0.0.5 • Public • Published

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' ]
      }
    ]
  }
}

Readme

Keywords

Package Sidebar

Install

npm i whatever-loader

Weekly Downloads

0

Version

0.0.5

License

MIT

Last publish

Collaborators

  • az8641683