Skip to content

Commit

Permalink
Fixed some npm vulnerabilities (cvat-ai#61)
Browse files Browse the repository at this point in the history
* Fixed some npm vulnerabilities

* Setup new dev server api scheme
  • Loading branch information
bsekachev authored Jun 15, 2022
1 parent 2598641 commit c63fed1
Show file tree
Hide file tree
Showing 4 changed files with 1,697 additions and 3,881 deletions.
2 changes: 1 addition & 1 deletion cvat-data/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
22 changes: 14 additions & 8 deletions cvat-ui/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down Expand Up @@ -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/',
},
],
}),
],
});
Loading

0 comments on commit c63fed1

Please sign in to comment.