-
-
Notifications
You must be signed in to change notification settings - Fork 156
/
vue.config.js
33 lines (32 loc) · 907 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
26
27
28
29
30
31
32
33
const CopyPlugin = require('copy-webpack-plugin');
const { CycloneDxWebpackPlugin } = require('@cyclonedx/webpack-plugin');
module.exports = {
productionSourceMap: false,
runtimeCompiler: true,
// Relative paths cannot be supported. Research by @nscur0 - https://owasp.slack.com/archives/CTC03GX9S/p1608400149085400
publicPath: '.',
devServer: {
proxy: { '/api': { target: process.env.VUE_APP_SERVER_URL } },
},
configureWebpack: {
devtool: 'source-map',
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: '../',
}),
],
},
};