Skip to content

Instantly share code, notes, and snippets.

@oomusou
Created June 12, 2019 13:03
Show Gist options
  • Save oomusou/c4974f283fbde5db81571d1e375ddb71 to your computer and use it in GitHub Desktop.
Save oomusou/c4974f283fbde5db81571d1e375ddb71 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/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