node-haste-webpack-plugin
v0.0.1
Published
Haste resolver plugin for webpack
Downloads
8
Readme
node-haste-webpack-plugin
Haste resolver plugin for webpack
var HasteResolverPlugin = require('node-haste-webpack-plugin');
module.exports = {
plugins: [
new HasteResolverPlugin({
platform: 'web',
nodeModules: ['react-web', 'react-button'],
cacheDirectory : './'
}),
]
};
Options
- roots Array. Default is
[process.cwd()]
- platform String - web/ios/android. Default is
web
- blacklist Array. Directory or file to ignore.
- nodeModules Array. Node modules should crawl.
- preferNativePlatform Boolean. Default is
true
Thanks
- https://github.com/facebookarchive/node-haste/tree/master
- https://github.com/yuanyan/haste-resolver
- https://github.com/yuanyan/haste-resolver-webpack-plugin