0.1.0 • Published 8 years ago
index-file-plugin v0.1.0
index-file-plugin
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'
])
])
]
}
0.1.0
8 years ago