반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- react
- Wecode
- express
- event
- webpack
- 리액트
- storybook
- State
- MySQL
- Vue transition
- vuex
- JavaScript
- sass
- v-html
- 쉬운설명
- 자료구조
- Vue.js
- 자바스크립트
- ES6
- TypeScript
- input
- jsx
- HOC
- scss
- mapGetters
- Vue
- 댓글달기
- nodejs
- CSS
- App.vue
Archives
- Today
- Total
목록console.log 제거 (1)
익명의 개발노트
[vue.js] production mode에서 console.log 제거하기
Production mode에서 콘솔로그 제거 하기 terser-webpack-plugin를 이용하여 진행한다. npm에서 1400만회 이상 다운로드와 최근 업데이트 기록으로 인해 terser 라이브러리를 사용하기로 했다. 사용법은 간단함. npm install terser-webpack-plugin vue.config.js 에 아래와 같이 설정한다. const TerserPlugin = require('terser-webpack-plugin'); module.exports = { configureWebpack: config => { config.optimization = { minimize: true, minimizer: [ new TerserPlugin({ terserOptions: { ecma: 6..
코딩일기/TIL
2020. 7. 22. 20:44