webpacker-entry
v0.1.0
Published
Generate webpack.config.entry suit to rails with webpacker.
Downloads
161
Readme
webpacker-entry
Generate webpack.config.entry suit to rails with webpacker.
This module would be useful if you use webpack.config on webpack way, without webpacker.js.
If you would like to use configurable standalone webpack-way config, webpacker-pure-config is also useful.
Usage
const { generateEntry } = require('webpacker-entry')
module.exports {
/* your cool webpack config */
entry: generateEntry({ baseDir: 'path/to/source/dir', extensions: [ '.ts', '.tsx' ] })
/* ... */
}
- options and default
- baseDir: string = 'app/javascript/packs'
- options: string[] = [ '.js' ]
Notes
- supports Node.js 8.x+
Licence
MIT