webpacker-entry

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i webpacker-entry

Weekly Downloads

69

Version

0.1.0

License

MIT

Unpacked Size

75.5 kB

Total Files

8

Last publish

Collaborators

  • euxn23