antd样式在react中不生效解决办法

在.babelrc

{
	"presets": [
	  "es2015", "react", "stage-2"
	] ,
	"plugins": [
	  "add-module-exports",
	  "transform-runtime",
	  ["import", { "libraryName": "antd", "libraryDirectory": "es","style":"css","ant"],
	  ["import", { "libraryName": "ant-mobile", "libraryDirectory": "lib"}, "ant-mobile"]
	],
}

 

你可能感兴趣的:(react.js)