Skip to content

Instantly share code, notes, and snippets.

@oomusou
Created June 12, 2019 13:14
Show Gist options
  • Save oomusou/07194500e0a27f37042a92cd84463dba to your computer and use it in GitHub Desktop.
Save oomusou/07194500e0a27f37042a92cd84463dba to your computer and use it in GitHub Desktop.
const path = require("path")
const UglifyJsPlugin = require("uglifyjs-webpack-plugin")
module.exports = {
publicPath: process.env.NODE_ENV === "production" ? "./" : "/",
productionSourceMap: false,
devServer: {
proxy: {
'/flowable-task': {
target: 'http://10.139.201.188:8900',
ws: false,
changeOrigin: true,
auth: 'admin:test'
}
// '/flowable-task/process-api/history/historic-process-instances': {
// // target: 'http://172.18.65.219:8080',
// target: 'http://10.139.201.188:8900',
// ws: true,
// changeOrigin: true,
// auth: 'admin:test'
// },
// '/flowable-task/process-api/query/process-instances': {
// // target: 'http://172.18.65.219:8080',
// target: 'http://10.139.201.188:8900',
// ws: true,
// changeOrigin: true,
// auth: 'admin:test'
// },
// '/flowable-task/process-api/runtime/process-instances/': {
// // target: 'http://172.18.65.219:8080',
// target: 'http://10.139.201.188:8900',
// ws: true,
// changeOrigin: true,
// auth: 'admin:test'
// },
},
},
pluginOptions: {
i18n: {
locale: "zh-CN",
fallbackLocale: "zh-CN",
localeDir: "locales",
enableInSFC: true
}
},
css: {
// modules: true,
loaderOptions: {
less: {
javascriptEnabled: true
}
}
}
// transpileDependencies: [
// "axios",
// "core-js",
// "echarts",
// "material-design-icons-iconfont",
// "roboto-fontface",
// "vue",
// "vue-i18n",
// "vue-router",
// "vuetify",
// "vuex"
// ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment