NervJS/taro-zhihu-sample

编译时有错误,一直显示监听文件修改中

SmileYang966 opened this issue · 0 comments

Taro配置有误,请检查,plugins不就时一个数组定义吗?感觉没错啊。一直卡在监听文件修改中,然后就不动了,Taro新手,不知道怎么玩,还请指教
`const config = {
projectName: 'taro_zhihu',
date: '2018-6-12',
designWidth: 750,
sourceRoot: 'src',
outputRoot: 'dist',
plugins: {
babel: {
sourceMap: true,
presets: [
'env'
],
plugins: [
'transform-class-properties',
'transform-decorators-legacy',
'transform-object-rest-spread'
]
},
},
framework: 'react',
defineConstants: {
},
weapp: {

},
h5: {
publicPath: '/',
staticDirectory: 'static',
module: {
postcss: {
autoprefixer: {
enable: true
}
}
}
}
}

module.exports = function (merge) {
if (process.env.NODE_ENV === 'development') {
return merge({}, config, require('./dev'))
}
return merge({}, config, require('./prod'))
}
`

截屏2021-01-15 下午5 42 18