index-file-plugin

0.1.0 • Public • Published

index-file-plugin

Build Status Version License

A webpack resolver plugin to specify directory index file.

Install

npm i -D index-file-plugin

webpack config

var IndexFilePlugin = require('index-file-plugin')
var webpack = require('webpack')
{
  plugins: [
    new webpack.ResolverPlugin([
      new IndexFilePlugin([
        '[name].js',  // '[name]' is directory name.
        'main.js',
        'index.js'
      ])
    ])
  ]
}

Versions

Current Tags

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

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i index-file-plugin

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • webuster