0.2.2 • Published 8 years ago

index-file-webpack-plugin v0.2.2

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

index-file-webpack-plugin

Build Status Version License

A webpack resolver plugin to specify directory index file.

Install

npm i -D index-file-webpack-plugin

webpack config

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

webpack2 config

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

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago