npm run build 전후 스크립트 추가하기

2021. 7. 15. 11:26IT개발/Vue.js

반응형

 

// package.json 내부 설정

{
  "name": "npm-scripts-example",
  "version": "1.0.0",
  "description": "npm scripts example",
  "scripts": {
    "prebuild": "echo I run before the build script",
    "build": "cross-env NODE_ENV=production webpack",
    "postbuild": "echo I run after the build script"
  }
}
반응형