|
- const autoprefixer = require('autoprefixer')
- const pxtorem = require('postcss-pxtorem')
-
- module.exports = {
- outputDir: 'docs',
- baseUrl: '/',
- assetsDir: 'static',
- productionSourceMap: false,
- css: {
- loaderOptions: {
- postcss: {
- plugins: [
- autoprefixer(),
- pxtorem({
- rootValue: 37.5,
- propList: ['*']
- })
- ]
- }
- }
- },
- devServer: {
- port: 9090, // 端口号
- https: false, // https:{type:Boolean}
- open: true, //配置自动启动浏览器
- disableHostCheck: true,
- proxy: {
- // '/api': {
- // target: 'http://localhost:8889',
- // changeOrigin: true
- // },
- '/platform-framework': {
- // target: `http://127.0.0.1:${port}/mock`,
- target: `http://192.168.1.83:8080`,
- // target: 'http://192.168.1.169:8086/',
- changeOrigin: true
- }
- }
- }
- }
|