为什么我的.babel文件没起作用
lcoder
#2
感觉没毛病,试试其他的
{
module: {
loaders: [
{
test: /\.jsx?$/ ,
loader: 'babel-loader' ,
exclude: /node_modules/ ,
query: {
compact: false ,
presets: ['es2015','react','stage-0'] ,
plugins: [ ['import', { "libraryName": "antd" , "style": false } ] ]
} ,
cacheDirectory: true
} ,
{
test: /\.css$/ ,
loader: 'style!css'
}
]
}
}