-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
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'
},
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels