Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add server dev build command #656

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

tompretty
Copy link
Contributor

What does this change?

Just a tiny tweak to add a dev build command to the server package.json. It's quite useful for debugging in vscode to have a specific command to build the project to run before launching the debugger.

@@ -6,6 +6,7 @@
"scripts": {
"lint": "eslint 'src/**/*.{ts,tsx}'",
"build": "webpack --config webpack.prod.js",
"build-dev": "webpack --config webpack.dev.js",
"prestart": "webpack --config webpack.dev.js",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this one redundant?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it's a good point - so the prestart is nice in that running yarn start will automatically run prestart first, so it's kind of special. I guess we could do

"prestart": "yarn build-dev",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants