Skip to content

Shopify CLI 3x & Shopify Theme Serve #174

Answered by james0r
james0r asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks @lukecharle

I also needed to specify my theme path with --path shopify where my /shopify directory is a direct child of the NPM root.

My NPM scripts ended up looking like

  "scripts": {
    "start": "run-p -sr shopify:dev vite:watch",
    "deploy": "run-s vite:build && shopify theme push --path shopify",
    "deploy:new": "run-s vite:build && shopify theme push --unpublished --path shopify",
    "vite:watch": "cross-env NODE_ENV=development vite build --watch --mode 'development' --config .config/vite.config.js",
    "vite:build": "cross-env NODE_ENV=production vite build --mode 'production' --config .config/vite.config.js",
    "shopify:dev": "shopify theme dev --path shopify",
    

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by james0r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants