- Upgraded the webpack version from 4 to 5.
- Added style loaders, including
style-loader
,css-loader
,postcss-loader
, andsass-loader
. - Split the configuration for different environments. You can find
webpack.common.js
,webpack.dev.js
, andwebpack.prod.js
in the./conf
folder. Feel free to modify them.
- Utilized
webpack-chain
to rewrite thewebpack.config.js
. - Installed
@solidjs/router
.
- Added ESLint, Stylelint, and Prettier configurations with basic settings.
- Included a
stylelint
configuration in.vscode/settings.json
.
- Added a favicon.
- Adjusted settings for
React
.
- Added support for
CSS modules
.
- Customized the HTML
lang
attribute.
- Introduced the
ReactParentComponent
type (also known asRFC
) as a replacement for the previousReact.FC
. Refer to the guide for more details.
- Changed the
module.exports
inwebpack.config.js
to a functional approach. - Fixed the issue preventing simultaneous support for regular
css
andcss modules
. - Rewrote the documentation in both Chinese and English.
- Switch the config file from
webpack.config.js
towebpack.config.ts
. - Discard
clean-webpack-plugin
. Opt foroutput.clean
instead.
- Incorporate
esbuild-loader
in the development environment. It can be toggled by passing anisEsbuildInDev
option, which defaults totrue
.