/react-todo

a demo project for using raw webpack to bundle react app.

Primary LanguageTypeScript

This is a demo project for using raw webpack to bundle react app.

loader

loader pre-process files before they are loaded.

  • babel-loader: process js files before bundle
  • style-loader & css loader: load css files as js modules

plugins

plugins are used to customize the webpack build process.

  • clean-webpack-plugin: clean dist folder before build
  • html-webpack-plugin: customize html file

dev server

  • webpack-dev-server: run a development server
  • webpack-dev-middleware: use webpack with express