npm install antd --save
后无效果
可以尝试为webpack.config.js的module段添加以下代码
{
test: /\.(js|jsx)$/,
exclude:/node_modules/,
loader: 'babel',
query: {
presets: ['react', 'es2015', 'stage-0'],
plugins: [
['import',{
libraryName: 'antd',
style: 'css'
}]
]
}
},