You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
590 B
JavaScript

const webpack = require('webpack');
module.exports = {
"outputDir": "../data/dist",
"filenameHashing": false,
"productionSourceMap": false,
"transpileDependencies": [
"vuetify"
],
devServer: {
proxy: {
'^/': {
target: 'http://192.168.178.62:80',
ws: true,
changeOrigin: true
},
}
},
configureWebpack: config => {
if (process.env.NODE_ENV === 'production') {
// optimize build for esp32
return {
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1
})
]
}
} else {
// mutate for development...
}
}
}