Webpack

효딩딩·2022년 8월 24일
0

Webpack 이란 무엇인가?

  • Webpack은 여러개 파일을 하나의 파일로 합쳐주는 모듈 번들러(Module bundler)이다.
  • Webpack 모듈 번들러는 애플리케이션 코드를 구문 분석하여 import 또는 require 명령문을 검색해 애플리케이션에 필요한 모든 자산이 포함된 번들을 생성합니다.
  • 따라서 웹 페이지를 통해 자산을 쉽게 제공할 수 있습니다.
  • JavaScript용 SDK는 출력 번들에 포함하기 위해 는 종속성 중 하나로 webpack에 포함할 수 있습니다.

Webpack을 쓰는 이유는 무엇일까?

  • 표준화된 모듈화 기법이 등장한 것은 ES2015부터인데, Webpack이 필요한 이유를 알기 위해서는 모듈화 역사를 알아볼 필요가 있다.
  • 자세한 역사 배경은 여기를 참조하기 바람 (https://ingg.dev/webpack/)

출처: https://ingg.dev/webpack/
https://docs.aws.amazon.com/ko_kr/sdk-for-javascript/v2/developer-guide/webpack.html

(영문)

Webpack

Webpack is a module bundler. Webpack can take care of bundling alongside a separate task runner. However, the line between bundler and task runner has become blurred thanks to community-developed webpack plugins. Sometimes these plugins are used to perform tasks that are usually done outside of webpack, such as cleaning the build directory or deploying the build although you can defer these tasks outside of webpack.

React, and Hot Module Replacement (HMR) helped to popularize webpack and led to its usage in other environments, such as Ruby on Rails. Despite its name, webpack is not limited to the web alone. It can bundle with other targets as well, as discussed in the Build Targets chapter.

Source: https://survivejs.com/webpack/what-is-webpack/

profile
어제보다 나은 나의 코딩지식

0개의 댓글