slate
slate copied to clipboard
Yarn deploy builds, but doesn't deploy
Problem
When I type yarn deploy
, slate-tools build
will successfully run, but I no longer receive the option to upload. Instead, I have to run yarn slate-tools deploy
separately.
Cheers
@kevmon How does your package.json look like? the scripts part should be
"scripts": { "start": "slate-tools start", "watch": "slate-tools start --skipFirstDeploy", "build": "slate-tools build", "deploy": "slate-tools build && slate-tools deploy", "zip": "slate-tools build && slate-tools zip", "lint": "slate-tools lint", "format": "slate-tools format" }
@peke314
Thanks, it looks exactly like that. I have two projects that are duplicates, it works for one but not the other. I'm not sure how to troubleshoot further.
Update: It was a plugin that was causing this issue - called BundleAnalyzerPlugin - when extending webpack in slate.config.js.
@dungle-scrubs - This helped me, thanks.