Open SmileYang966 opened 3 years ago
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')) } `
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')) } `