mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-12-06 05:38:08 +08:00
42 lines
928 B
JavaScript
42 lines
928 B
JavaScript
// fes.config.js 只负责管理 cli 相关的配置
|
|
import pxtoviewport from 'postcss-px-to-viewport';
|
|
|
|
|
|
export default {
|
|
define: {
|
|
// __VUE_OPTIONS_API__: true,
|
|
// __VUE_PROD_DEVTOOLS__: false
|
|
},
|
|
request: {
|
|
dataField: 'fileTemplateList'
|
|
},
|
|
html: {
|
|
options: {
|
|
title: '海贼王'
|
|
}
|
|
},
|
|
imageMinimizer: {
|
|
disable: false
|
|
},
|
|
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: 8080
|
|
}
|
|
};
|