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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    1
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.2
    0

Package Sidebar

Install

npm i whatever-loader

Weekly Downloads

1

Version

0.0.5

License

MIT

Last publish

Collaborators

  • az8641683