Hi all,

I'm an absolute newbie in GULP/LIBSASS/NODE.js paradigm, so I have the following question:

What is the exact workflow to use sass:dev VS sass:prod within gulpfile.js ?

  1. It is intended to use "gulp sass:prod" at very last operation before deploy to prod?
  2. If yes: how can this be reconciled with GIT workflow?
  3. What is and what it is used for the following piece of code in package.json?
"scripts": {
    "sass:dev": "./node_modules/.bin/gulp",
    "sass:prod": "./node_modules/.bin/gulp sass:prod"
  },

Thank you very much for helping me.

Comments

MXT created an issue. See original summary.

BenMirkhah’s picture

During dev your build process may include extra debug info like source-maps, while for production you may want to minify / uglify to save on file size, as far as git workflow, on your dev work branch you commit code compiled using the dev setting, once development is over and prior to merging into master you build using the production settings, test it, merge into master, tag and deploy.

steinmb’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.