Skip to content

configFactory: support entry as an array #6

@maxceem

Description

@maxceem

Providing entry value to configFactory as an array it's not supported.

What I did:

  • Call configFactory providing an array to entry:

    configFactory({
      entry: [
        'one entry',
        'second entry'
      ]
    })
    
  • In the resulting webpack config both for development and production environment I get:

    {
       entry: [
        'one entry',
        'second entry'
      ]
    }
    
  • Expected output for production is:

    {
      entry: {
        main: [
          'one entry',
          'second entry'
        ],
        polyfills, [
          'babel-polyfill',
          'nodelist-foreach-polyfill',
       ]
    }
    
  • and for development:

    {
      entry: {
        main: [
          'react-hot-loader/patch',
          'webpack-hot-middleware/client?reload=true',
          'one entry',
          'second entry'
        ],
        polyfills, [
          'babel-polyfill',
          'nodelist-foreach-polyfill',
       ]
    }
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions