forked from DependencyTrack/frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.config.js
25 lines (24 loc) · 809 Bytes
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const CopyPlugin = require('copy-webpack-plugin')
const { CycloneDxWebpackPlugin } = require('@cyclonedx/webpack-plugin');
module.exports = {
lintOnSave: false,
productionSourceMap: false,
runtimeCompiler: true,
// Relative paths cannot be supported. Research by @nscur0 - https://owasp.slack.com/archives/CTC03GX9S/p1608400149085400
publicPath: "/",
devServer: {
proxy: { "/api": { target: "http://localhost:8080" } }
},
configureWebpack: {
plugins: [
new CopyPlugin([
{ from: "node_modules/axios/dist/axios.min.js", to: "static/js", force: true },
{ from: "node_modules/oidc-client/dist/oidc-client.min.js", to: "static/js", force: true }
]),
new CycloneDxWebpackPlugin({
context: '../',
outputLocation: '../'
})
]
}
};