gloriaJun / til

Lessoned Learned
3 stars 0 forks source link

How to using build tool in package.json #9

Open gloriaJun opened 5 years ago

gloriaJun commented 5 years ago

If some of the scripts depend on the other scripts, you can use $npm_execpath environment variable.

For Example,

  "scripts": {
    "start": "$npm_execpath run dev",
    "dev": "cross-env NODE_ENV=development webpack-dev-server --config
  },

Reference