xxx
This commit is contained in:
@@ -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文件路径
|
||||
Reference in New Issue
Block a user