The config object should default to this:
{
src: './src',
dist: './dist',
entry: [
'./index.js'
]
}
Or, would it be too tricky to have the default entrypoint default to ./${npm_package_name}.js from package.json.
Or, even trickier, if there's a wp-content/themes directory, (the project is a WordPress theme) default src and dist to ./wp-content/themes/${npm_package_name}/{src,dist} and entry to ['./js/main.js', './admin.js', './js/editor.js']?
The config object should default to this:
Or, would it be too tricky to have the default entrypoint default to
./${npm_package_name}.jsfrom package.json.Or, even trickier, if there's a wp-content/themes directory, (the project is a WordPress theme) default
srcanddistto./wp-content/themes/${npm_package_name}/{src,dist}andentryto['./js/main.js', './admin.js', './js/editor.js']?