Files
OpenDTU/webapp/vue.config.js

38 lines
945 B
JavaScript
Raw Normal View History

2022-04-11 21:48:12 +02:00
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
2022-04-16 19:04:38 +02:00
transpileDependencies: true,
productionSourceMap: false,
outputDir: '../data',
2022-05-22 22:39:34 +02:00
filenameHashing: false,
2022-04-16 19:04:38 +02:00
css: {
extract: false,
},
configureWebpack: {
optimization: {
splitChunks: false
}
},
pluginOptions: {
compression: {
gzip: {
filename: '[file].gz[query]',
algorithm: 'gzip',
include: /\.(js|css|html|svg|json)(\?.*)?$/i,
deleteOriginalAssets: true,
minRatio: 0.8,
}
}
},
devServer: {
proxy: {
'^/api': {
target: 'http://192.168.20.110/'
},
'^/livedata': {
target: 'ws://192.168.20.110/',
ws: true,
changeOrigin: true
}
}
}
2022-04-16 19:04:38 +02:00
})