12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- // ref: https://umijs.org/config/
- export default {
- treeShaking: true,
- routes: [
- {
- path: '/',
- component: '../layouts/index',
- routes: [
- {
- path: '/tui_l',
- name: '下载',
- component: '../pages/TuiDownload/Download'
- },
- {
- path: '/',
- name: '下载',
- component: '../pages/RegularDownload/Download'
- },
- {
- path: '/avdownload',
- name: '下载',
- component: '../pages/SexyDownload/SexyDownload'
- },
- ]
- }
- ],
- plugins: [
- // ref: https://umijs.org/plugin/umi-plugin-react.html
- ['umi-plugin-react', {
- antd: true,
- dva: false,
- dynamicImport: false,
- dll: false,
- hd: true,
- routes: {
- exclude: [
- /components\//,
- ],
- },
- }],
- ],
- hash: true,
- extraBabelPlugins: [
- ["import", { libraryName: "antd-mobile", style: true }] // `style: true` 会加载 less 文件
- ],
- proxy: {
- '/api-app': {
- target: 'http://api.starbuds.laylib.com',
- //target: 'http://h5.paqukeji.com',
- changeOrigin: true,
- },
- '/api-common': {
- target: 'http://api.starbuds.laylib.com',
- //target: 'http://h5.paqukeji.com',
- changeOrigin: true,
- },
- },
- //publicPath: '/themes/default/template/app-download/',
- outputPath: './download-h5'
- }
|