Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SmileYang966 opened this issue Jan 15, 2021 · 0 comments
Open

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

SmileYang966 opened this issue Jan 15, 2021 · 0 comments

Comments

@SmileYang966
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant