mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-28 21:18:54 +03:00
36 lines
856 B
JavaScript
36 lines
856 B
JavaScript
const webpack = require('webpack')
|
|
module.exports = {
|
|
chainWebpack: config => {
|
|
config
|
|
.plugin('html')
|
|
.tap(args => {
|
|
args[0].title = 'VueTorrent'
|
|
return args
|
|
})
|
|
},
|
|
outputDir: 'vuetorrent/public',
|
|
publicPath: './',
|
|
transpileDependencies: ['vuetify'],
|
|
configureWebpack: {
|
|
devtool: 'source-map',
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
APPLICATION_VERSION: JSON.stringify(
|
|
require('./package.json').version
|
|
)
|
|
})
|
|
]
|
|
},
|
|
devServer: {
|
|
watchOptions: {
|
|
poll: true
|
|
},
|
|
host: '0.0.0.0',
|
|
port: 8000,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://127.0.0.1:8080'
|
|
}
|
|
}
|
|
}
|
|
}
|