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

Doesn't work with yarn and npm scripts #58

Open
RyanPWalker opened this issue Nov 18, 2019 · 1 comment
Open

Doesn't work with yarn and npm scripts #58

RyanPWalker opened this issue Nov 18, 2019 · 1 comment

Comments

@RyanPWalker
Copy link

RyanPWalker commented Nov 18, 2019

Running yarn build with the following npm script does absolutely nothing, with or without the escaped double quotes.

"scripts": {
    "build": "rm -rf dist && NODE_ENV=production webpack -p --config webpack.config.js && cpx \"/dist/*.js\" \"/static/\"",
}

Node 12.13.0
cpx 1.5.0
yarn 1.19.1
latest MacOS

@MalcolmDwyer
Copy link

Are you sure you want /dist and /static ... those paths would point to the root of your file system, right?

Try this: ... && cpx \"dist/*.js\" \"static/\"",

@Fuwn Fuwn mentioned this issue Apr 21, 2020
Closed
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

No branches or pull requests

2 participants