-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Description
🙋 feature request
I need to be able to see the build result in readable form, i.e., I need a development build, without starting a web server. According to documentation, this is not possbile using the parcel CLI.
🤔 Expected Behavior
There should be a target configuration option mode and a CLI switch for selecting development vs. production mode.
😯 Current Behavior
Currently, parcel [serve] creates a development build and starts a web server, while parcel build creates a production build without starting a web server.
💻 Examples
package.json
{
"source": "src/**/*",
"type": "module",
"scripts":
{
"dev:build": "parcel build --target dev --no-content-hash",
"prod:build": "parcel build --target prod --no-content-hash"
},
"targets":
{
"dev":
{
"mode": "development"
},
"prod":
{
"mode": "production"
}
},
"devDependencies":
{
"parcel": "^2.16.0"
}
}CLI
parcel build --development
parcel build --productionMetadata
Metadata
Assignees
Labels
No labels