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

Readme

Keywords

Package Sidebar

Install

npm i index-file-plugin

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • webuster