Skip to content

Update dependencies#34

Open
LeoRosse wants to merge 4 commits intomasterfrom
update-dependencies
Open

Update dependencies#34
LeoRosse wants to merge 4 commits intomasterfrom
update-dependencies

Conversation

@LeoRosse
Copy link
Copy Markdown
Contributor

@LeoRosse LeoRosse commented Mar 4, 2022

No description provided.

package.json Outdated
"build:development": "NODE_ENV=development yarn run webpack --progress --mode development",
"build:production": "rm -rf ./dist/ && NODE_ENV=production env=production yarn run webpack",
"build:development": "yarn run webpack --env ${NODE_ENV:-development}",
"build:production": "rm -rf ./dist/ && yarn run webpack --env ${NODE_ENV:-production}",
Copy link
Copy Markdown
Contributor

@CDimonaco CDimonaco Mar 4, 2022

Choose a reason for hiding this comment

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

Hi!, here we forced NODE_ENV production because the task is named build:production, with that update now you can build a production version with a development env. Is what you want? Maybe you can try to make a generic build script with the node_env variable with that parameter :D

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Make sense, we could assume that when running the default build the environment is prod, merging the two tasks, something like this:
build: "rm -rf ./dist/ && yarn run webpack --env ${NODE_ENV:-production}".
What do you think?

package.json Outdated
{
"name": "beccaccino",
"version": "2.0.0",
"version": "2.0.0-upgrade-dephs.0",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe it's a typo? You mean deps?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi @CDimonaco! Yes, thank you, fortunately, I haven't published yet :)

Also upgrade build script
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