Git Product home page Git Product logo

js-webpack-babel's Introduction

webpack 관련 설치

npm install webpack webpack-cli html-webpack-plugin webpack-dev-server style-loader css-loader file-loader clean-webpack-plugin babel-loader @babel/preset-env @babel/plugin-transform-runtime -D

  • webpack-cli : Command Line으로 webpack을 실행
  • html-webpack-plugin : HTML을 읽어온다. script tag를 삽입한다. (플러그인)
  • webpack-dev-server : 자동 build
  • style-loader : css를 스타일 태그로 만들어서 head 내부에 넣어준다. (모듈)
  • mini-css-extract-plugin : head에 style tag로 넣는 것이 아니라, 외부 import 방식
  • css-loader : css 파일을 읽어준다. (모듈)
  • file-loader : img 파일을 불러온다.
  • clean-webpack-plugin : build 시 사용하지 않은 파일을 제거해준다.
  • babel-loader : babel.config.js를 사용하지 않아도 babel을 처리해준다.
  • @babel/preset-env : 기본적인 babel 플러그인을 합쳐놓은 것
  • @babel/plugin-transform-runtime : babel에서 async/await 문법을 지원한다.

build, start 명령어

  • "build": "webpack --mode=production",
  • "start": "webpack serve --open --mode=development"

jest 사용을 위한 babel 설치

npm install jest babel-jest @babel/core -D

gh-pages 배포

  • npm install gh-pages -D
  • "deploy": "gh-pages -d dist"
  • npm run deploy

js-webpack-babel's People

Contributors

euijinkk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.