This commit is contained in:
2019-03-20 15:29:28 +08:00
parent 222d978a10
commit 636304af73
27 changed files with 670 additions and 124 deletions

View File

@@ -5,6 +5,19 @@ module.exports = {
defineConstants: {
},
weapp: {},
h5: {}
}
h5: {
esnextModules: ['taro-ui'],
// devServer: {
// proxy: {
// '/api': 'http://192.168.1.230/Shop-ajaxStore',
// changeOrigin: true,
// headers: {
// // 后端要校验请求源,那改下 host 或者 origin 不就美滋滋了?
// Host: '192.168.1.230',
// Origin: '192.168.1.230'
// }
// }
// }
}
}

View File

@@ -8,7 +8,7 @@ const config = {
'828': 1.81 / 2
},
sourceRoot: 'src',
outputRoot: 'dist',
outputRoot: 'dist',
plugins: {
babel: {
sourceMap: true,

View File

@@ -5,5 +5,7 @@ module.exports = {
defineConstants: {
},
weapp: {},
h5: {}
h5: {
esnextModules: ['taro-ui']
}
}