webpack-inject-plugin
webpack-inject-plugin copied to clipboard
Entry should be a non-empty array
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'
},