mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-12-05 13:17:42 +08:00
50 lines
1.1 KiB
JavaScript
50 lines
1.1 KiB
JavaScript
// fes.config.js 只负责管理 cli 相关的配置
|
|
import pxtoviewport from '@ttou/postcss-px-to-viewport';
|
|
import { defineBuildConfig } from '@fesjs/fes';
|
|
|
|
export default defineBuildConfig({
|
|
define: {
|
|
// __VUE_OPTIONS_API__: true,
|
|
// __VUE_PROD_DEVTOOLS__: false
|
|
},
|
|
publicPath: '/',
|
|
request: {
|
|
dataField: 'result'
|
|
},
|
|
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
|
|
},
|
|
windicss: {
|
|
config: {
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
green: '#7cb305'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
|