12345678910111213141516171819202122232425262728293031 |
- var px2rem = require('postcss-loader');
- module.exports = {
- // 配置 webpack-dev-server 行为。
- devServer: {
- open: process.platform === 'darwin',
- host: '0.0.0.0',
- port: 8080,
- https: false,
- hotOnly: false,
- // 查阅 https://github.com/vuejs/vue-docs-zh-cn/blob/master/vue-cli/cli-service.md#配置代理
- proxy: {
- '/api': {
- target: 'http://dnzk.baianxi.com',
- changeOrigin: true,
- secure: false,
- // ws: true,
- // pathRewrite: {
- // '^/api': '/' // 请求数据路径别名
- // }
- }
- },
- before: app => {}
- },
-
- // 三方插件的选项
- pluginOptions: {
- // ...
- },
- publicPath:'/',
- // assetsDir:"greenhouse"
- }
|