参考
资源
安装 react-app-rewired
添加开发时依赖
1 | yarn add react-app-rewired -D |
新建 config-overrides.js
1 | touch config-overrides.js |
config-overrides.js
1 | module.exports = function override(config, env) { |
package.json
1 | "scripts": { |
配置 stylelint 和 tailwindcss
添加开发时依赖
1 | yarn add stylelint-webpack-plugin -D |
运行时依赖
1 | yarn add tailwindcss |
config-overrides.js
1 | const StylelintPlugin = require('stylelint-webpack-plugin') |
tailwind.config.js
1 | // https://tailwindcss.com/docs/configuration |