mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-28 13:08:53 +03:00
28 lines
663 B
JavaScript
28 lines
663 B
JavaScript
const webpack = require('webpack')
|
|
module.exports = {
|
|
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: 'localhost',
|
|
port: 8000,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://127.0.0.1:8080'
|
|
}
|
|
}
|
|
}
|
|
}
|