yeoseon / tip-archive

트러블 슈팅 및 팁을 모아두는 레포 (Today I Learned)
29 stars 2 forks source link

vue.js 개발환경설정 기록 (with node.js) #42

Open yeoseon opened 4 years ago

yeoseon commented 4 years ago

은근히 시작하기가 어렵다. (node.js가 발목을 잡는다.ㅠㅠ) 불필요한 모듈은 괜히 깔기 싫고 모듈 별로 어떻게 쓰는지 다 파악하면서 해보고 싶다.

webpack, babel 등에 대한 세세한 사용 및 고민까지 기록해본다.

추후 vue.js playground 또는 wiki로 옮겨서 정리한다.

참고 자료

vue, vue-cli :: https://kdydesign.github.io/2019/04/22/vue-cli3-tutorial/

yeoseon commented 4 years ago

package.json 의 property

  "dependencies": {
    "axios": "^0.19.1",
    "clipboard": "^2.0.4",
    "core-js": "^3.4.4",
    "element-ui": "^2.13.0",
    "v-calendar": "^1.0.1",
    "vue": "^2.6.10",
    "vue-router": "^3.1.5",
    "vue-spinner": "^1.0.3",
    "vuex": "^3.1.2"
  },
  "devDependencies": {
    "@vue/cli-plugin-babel": "^4.1.0",
    "@vue/cli-plugin-eslint": "^4.1.0",
    "@vue/cli-service": "^4.1.0",
    "babel-eslint": "^10.0.3",
    "eslint": "^5.16.0",
    "eslint-plugin-vue": "^5.0.0",
    "vue-template-compiler": "^2.6.10"
  },

--save--save-dev의 차이

--production 옵션으로 빌드하게 되면 --save-dev 옵션으로 설치한 모듈들은 포함되지 않으며 --save 옵션으로 설치한 모듈들은 포함된다.