We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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')) } `
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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'))
}
`
The text was updated successfully, but these errors were encountered: