0.1.0 • Published 6 years ago

webpacker-entry v0.1.0

Weekly downloads
75
License
MIT
Repository
github
Last release
6 years ago

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