Skip to content

fix: cross-env & windows fix for vue #96

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

Merged
merged 2 commits into from
Aug 24, 2020

Conversation

vis97c
Copy link
Contributor

@vis97c vis97c commented Jul 25, 2020

This is a contribution to merge #46 in which they fixed the react path but ignored the vue ones, also the cmd command is passed over cross-env package to make sure it works in any enviroment (linux/osx/windows).

These changes shouldn't affect the current behavior of the package & hope it helps other people. Thanks for this amazing project.

This is a contribution to merge SoftwareBrothers#46 in which they fixed the react path but ignored the vue ones, also the cmd command is passed over cross-env package to make sure it works in any enviroment (linux/osx/windows)
@vis97c vis97c mentioned this pull request Jul 25, 2020
@duemu
Copy link

duemu commented Aug 24, 2020

I think you can achieve this without the "cross-env" dependency.

This two-liner in bundler.js should do the job as well:

const setCommand = process.platform === "win32" ? "SET " : "";
const cmd = ${setCommand}NODE_ENV=development parcel build ${entry} --out-dir ${outDist}

@wojtek-krysiak wojtek-krysiak merged commit c8e3ec1 into SoftwareBrothers:master Aug 24, 2020
@github-actions
Copy link

🎉 This PR is included in version 2.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants