webpack-inject-plugin icon indicating copy to clipboard operation
webpack-inject-plugin copied to clipboard

Entry should be a non-empty array

Open movie4 opened this issue 4 years ago • 0 comments

Hello!

Webpack 5 — when run, get error:

ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
 - configuration.entry['main'] should be a non-empty array.
   -> All modules are loaded upon startup. The last one is exported.

config example

  mode: 'development',
  watch: true,
  target: 'web',
  name: 'js',
  entry: {
    main: [ './static/js/main' ],
  },
  output: {
    path: '//static/js/__build/',
    publicPath: '/static/js/__build/',
    filename: '__[name].js'
  },

movie4 avatar Sep 27 '21 07:09 movie4