fes.js/packages/fes-template-h5/.fes.js
qlin 97bfb30f30
refactor: 优化 request 插件 (#130)
* refactor: 优化 request 插件

* fix: errorHandler 的顺序控制问题'
2022-06-16 11:04:26 +08:00

38 lines
911 B
JavaScript

// fes.config.js 只负责管理 cli 相关的配置
import pxtoviewport from '@ttou/postcss-px-to-viewport';
import { defineBuildConfig } from '@fesjs/fes';
export default defineBuildConfig({
proxy: {
'/v2': {
'target': 'https://api.douban.com/',
'changeOrigin': true,
}
},
publicPath: '/',
html: {
title: '拉夫德鲁'
},
extraPostCSSPlugins: [
pxtoviewport({
unitToConvert: 'px',
viewportWidth: 375,
unitPrecision: 5,
propList: ['*'],
viewportUnit: 'vw',
fontViewportUnit: 'vw',
selectorBlackList: [],
minPixelValue: 1,
mediaQuery: false,
replace: true,
exclude: [],
landscape: false,
landscapeUnit: 'vw'
})
],
devServer: {
port: 8000
}
});