VueTorrent/vue.config.js

37 lines
856 B
JavaScript
Raw Normal View History

2020-09-12 20:51:17 +03:00
const webpack = require('webpack')
2019-12-09 16:20:09 +03:00
module.exports = {
2020-10-18 13:12:16 +03:00
chainWebpack: config => {
config
.plugin('html')
.tap(args => {
args[0].title = 'VueTorrent'
return args
})
},
2020-05-20 19:42:17 +03:00
outputDir: 'vuetorrent/public',
2020-05-20 10:59:12 +03:00
publicPath: './',
transpileDependencies: ['vuetify'],
configureWebpack: {
2020-09-12 20:51:17 +03:00
devtool: 'source-map',
plugins: [
new webpack.DefinePlugin({
APPLICATION_VERSION: JSON.stringify(
require('./package.json').version
)
})
]
},
2020-05-20 10:59:12 +03:00
devServer: {
watchOptions: {
poll: true
},
2020-09-16 09:24:38 +03:00
host: '0.0.0.0',
2020-05-20 10:59:12 +03:00
port: 8000,
proxy: {
'/api': {
target: 'http://127.0.0.1:8080'
}
}
}
2019-12-09 16:20:09 +03:00
}