Fixed some npm vulnerabilities (#61)

* Fixed some npm vulnerabilities

* Setup new dev server api scheme
main
Boris Sekachev 4 years ago committed by GitHub
parent 2598641261
commit c63fed1bd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -59,7 +59,7 @@ const cvatData = {
},
],
},
plugins: [new CopyPlugin(['./src/js/3rdparty/avc.wasm'])],
plugins: [new CopyPlugin({ patterns: ['./src/js/3rdparty/avc.wasm'] })],
};
module.exports = cvatData;

@ -25,12 +25,16 @@ module.exports = (env) => ({
publicPath: '/',
},
devServer: {
contentBase: path.join(__dirname, 'dist'),
compress: false,
inline: true,
host: process.env.CVAT_UI_HOST || 'localhost',
client: {
overlay: false,
},
port: 3000,
historyApiFallback: true,
static: {
directory: path.join(__dirname, 'dist'),
},
proxy: [
{
context: (param) =>
@ -139,11 +143,13 @@ module.exports = (env) => ({
new Dotenv({
systemvars: true,
}),
new CopyPlugin([
{
from: '../cvat-data/src/js/3rdparty/avc.wasm',
to: 'assets/3rdparty/',
},
]),
new CopyPlugin({
patterns: [
{
from: '../cvat-data/src/js/3rdparty/avc.wasm',
to: 'assets/3rdparty/',
},
],
}),
],
});

5550
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -33,7 +33,7 @@
"babel-plugin-istanbul": "^6.0.0",
"babel-register": "^6.26.0",
"bundle-declarations-webpack-plugin": "^3.1.0",
"copy-webpack-plugin": "^5.1.2",
"copy-webpack-plugin": "^11.0.0",
"coveralls": "^3.1.0",
"css-loader": "^3.4.2",
"eslint": "^7.11.0",
@ -84,7 +84,7 @@
"vfile-reporter-json": "^2.0.2",
"webpack": "^5.72.1",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^3.11.0",
"webpack-dev-server": "4.9",
"worker-loader": "^3.0.8"
},
"scripts": {

Loading…
Cancel
Save