A custom React project template built on Webpack 5.
Note: You might not need this anymore as CRA recently moved to Webpack 5.
# Start development server
npm start
# Produce a production build
npm run build
# Execute test
npm test
# Execute test in watch mode
npm run watch
Shorter import is now possible with path alias. Instead of importing with
import Card from "../../../../component/Card";
You can now do
import Card from "@component/card";
as @component
alias is registered in tsconfig.json
, webpack.config.json
and jest.config.js
. New alias can be registered by adding similar value to these files.
Upon commit, Prettier will reformat the staged files, following by executing a round of Jest test.
- CSS module
- eslint