12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- // import px2rem from 'postcss-plugin-px2rem'
- const autoprefixer = require('autoprefixer')
- // ref: https://umijs.org/config/
- export default {
- treeShaking: true,
- routes: [
- {
- path: '/',
- redirect: '/myleval/home'
- },
- {
- path: '/myleval/home',
- name: '我的等级',
- component: '../pages/MyLeval/MyLeval'
- },
- {
- path: '/nobility',
- name: '贵族',
- component: '../layouts/BasicLayout',
- routes: [
- {
- path: '/nobility/home',
- name: '贵族',
- component: '../pages/MyNobility/MyNobility'
- },
- {
- path: '/nobility/explain',
- name: '贵族说明',
- component: '../pages/MyNobility/MyNobilityExplain'
- }
- ]
- },
- {
- path: '/vipinfo/home',
- name: '会员信息',
- component: '../pages/VipInfo/VipInfo'
- },
- {
- path: '/login',
- name: '登录',
- component: '../pages/TestLogin/TestLogin'
- }
- ],
- plugins: [
- // ref: https://umijs.org/plugin/umi-plugin-react.html
- ['umi-plugin-react', {
- antd: true,
- dva: false,
- dynamicImport: false,
- title: '星芽',
- dll: false,
- hd: true,
- routes: {
- exclude: [
- /components\//,
- ],
- },
- }],
- ],
- extraPostCSSPlugins: [
- autoprefixer({
- flexbox: true
- }),
- // px2rem({
- // rootValue: 75,
- // // propBlackList:['border','border-top','border-left','border-right','border-bottom','border-radius','font-size'], // 这些属性不需要转换
- // selectorBlackList:['t_npx']
- // })
- ],
-
- hash: true,
- // exportStatic: {
- // htmlSuffix: true
- // },
- proxy: {
- '/api-app': {
- target: 'http://api.starbuds.laylib.com',
- changeOrigin: true,
- //pathRewrite: { '^/server': '' },
- },
- '/api-common': {
- target: 'http://api.starbuds.laylib.com',
- changeOrigin: true,
- //pathRewrite: { '^/server': '' },
- },
- },
- // publicPath: '/themes/default/template/h5-activity/',
- publicPath: '/',
- outputPath: './appbase',
- copy: [
- {
- "from": "public",
- "to": ""
- }
- ]
- }
|