Skip to content

config defaults #1

@joemaller

Description

@joemaller

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']?

Metadata

Metadata

Assignees

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