반응형
불필요한 공백이나, 줄바꿈 혹은 주석 과 같은 렌더링 과정에 필요없는 코드를 제거 하는 방법 : Minify (압축)
https://skalman.github.io/UglifyJS-online/
UglifyJS 3: Online JavaScript minifier
// Documentation of the options is available at https://github.com/mishoo/UglifyJS2 { parse: { bare_returns : false, ecma : 8, expression : false, filename : null, html5_comments : true, shebang : true, strict : false, toplevel : null }, compress: { arrows
skalman.github.io
Webpack 은 코드를 빌드 할 떄 사용하지 않는 코드를 제거할 수 있다.
https://webpack.js.org/guides/tree-shaking/
Tree Shaking | webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable of transforming, bundling, or packaging just about any resource or asset.
webpack.js.org
반응형
'개발자' 카테고리의 다른 글
PMP Agile 바이블 (PMBOK 6th Edition) – Release Date + Changes + PDF to download (0) | 2020.07.21 |
---|---|
유튜브 NCS 채널 (0) | 2020.07.16 |
Immutable js 변하지 않는 데이터를 활용한 자바스크립트 개발 (0) | 2020.07.14 |
Validation에서 “Disable All” 버튼을 클릭하고 “Apply” 버튼을 클릭한다. (0) | 2020.06.28 |
전자정부프레임워크 RequestMappingHandlerMapping Mapped 경로 추가 방법 (0) | 2020.06.26 |