Simple Webpack React Starter - ParcelJS Version
Creat-React-App is very easy to use. I want to know how they made it. So I npm eject
and analysis webpack.config.js
.
I Separated two config files webpack.dev.js
and webpack.prod.js
from it. Use one config file. Do This.
Some plugins are not installed . It's a little hard to config.
Such as: react-dev-utils ...
React 16.8.1
React-Dom 16.8.1
react-app-polyfill 0.2.1
Sass 1.17.0
@babel/plugin-proposal-class-properties
@babel/plugin-proposal-export-default-from
@babel/plugin-syntax-dynamic-import
eslint-config-react-app -Official Eslint Preset. Easy to use.
webpack
webpack-cli
webpack-dev-server - Support HMR
webpack-manifest-plugin
eslint-loader
style-loader
css-loader
sass-loader
file-loader - Load SVG
@svgr/webpack -Load SVG
postcss-loader
postcss-flexbugs-fixes
postcss-preset-env
postcss-safe-parser
terser-webpack-plugin
clean-webpack-plugin - Auto clean build folder.
html-webpack-plugin
mini-css-extract-plugin - Extract Css file
optimize-css-assets-webpack-plugin
case-sensitive-paths-webpack-plugin
git clone https://github.com/daimalou/simple-webpack-react-starter
cd simple-webpack-react-starter
yarn or npm i
yarn start && yarn build
npm run start && npm run build
babel-preset-react-app -Official Babel Preset - Issues#2377
splitChunks not working as expected
Webpack 4 splitChunks causes reused chunks to not be executed
MIT