This commit is contained in:
2021-05-16 12:31:41 +08:00
parent 52138c2f83
commit f6076e0e32
846 changed files with 89 additions and 16811 deletions
+16
View File
@@ -0,0 +1,16 @@
1、babel-plugin-react-html-attrs
webpack.config.js 390行 'react-html-attrs' 解决className问题,可以使用class
2、css模块化
a.
webpack.config.js 50行
const cssModuleRegex = /\.module\.css$/; // 匹配xxx.mudule.css的文件 这些css文件将被模块化处理
-----------------------
b.
webpack.config.js 455行
modules: {
// getLocalIdent: getCSSModuleLocalIdent, //默认·
localIdentName: '[path]-[name]-[local]-[hash:base64:6]' //设置编译后的css命名
},
local //class名称
name //css文件名
path //css文件路径