12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- import px2rem from 'postcss-plugin-px2rem'
- const autoprefixer = require('autoprefixer')
- // ref: https://umijs.org/config/
- export default {
- treeShaking: true,
- routes: [
- {
- path: '/',
- redirect: '/giftsrank/home'
- },
- {
- path: '/giftsrank/home',
- name: '星芽',
- component: '../pages/GiftsRank/GiftsRank'
- },
- {
- path: '/giftsrank/rules',
- name: '星芽-排名规则',
- component: '../pages/GiftsRank/RankRule'
- }
- ],
- plugins: [
- // ref: https://umijs.org/plugin/umi-plugin-react.html
- ['umi-plugin-react', {
- antd: false,
- dva: false,
- dynamicImport: false,
- title: '星芽',
- dll: false,
- hd: false,
- routes: {
- exclude: [
- /components\//,
- ],
- },
- }],
- ],
- extraPostCSSPlugins: [
- autoprefixer({
- flexbox: true
- }),
- px2rem({
- rootValue: 37.5,
- // propBlackList:['border','border-top','border-left','border-right','border-bottom','border-radius','font-size'], // 这些属性不需要转换
- selectorBlackList:['t_npx']
- })
- ],
-
- hash: true,
- // exportStatic: {
- // htmlSuffix: true
- // },
- proxy: {
- '/ajax': {
- target: 'http://47.111.11.110:8001/',
- // target: 'http://www.yiqi1717.com/',
- changeOrigin: true,
- // "pathRewrite": { "^/api": "" }
- },
- '/active_bank': {
- // target: 'http://www.yiqi1717.com/',
- target: 'http://47.111.0.38:8002/',
- changeOrigin: true,
- }
- },
- // publicPath: '/themes/default/template/h5-activity/',
- publicPath: '/',
- outputPath: './ranks',
- copy: [
- {
- "from": "public",
- "to": ""
- }
- ]
- }
|