From 6ba0f001e1dfef4beaca649ec6f1236187bb41a4 Mon Sep 17 00:00:00 2001 From: enicolasgomez Date: Thu, 21 Dec 2023 15:46:57 -0300 Subject: [PATCH] Fixes on webpack --- webapp/package.bak | 1 - webapp/package.json | 7 +++---- webapp/webpack.config.js | 11 ----------- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/webapp/package.bak b/webapp/package.bak index e641f246..2280d3d2 100644 --- a/webapp/package.bak +++ b/webapp/package.bak @@ -26,7 +26,6 @@ "@sentry/integrations": "^6.16.1", "@sentry/react": "^6.16.1", "@sentry/tracing": "^6.16.1", - "csp-html-webpack-plugin": "^5.1.0", "jquery": "^3.6.0", "js-base64": "^3.6.1", "less-vars-to-js": "^1.3.0", diff --git a/webapp/package.json b/webapp/package.json index e641f246..68742f90 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -19,14 +19,13 @@ "@material-ui/core": "4.12.1", "@material-ui/icons": "^4.11.2", "@material-ui/lab": "^4.0.0-alpha.60", - "@metacell/geppetto-meta-client": "1.2.0", - "@metacell/geppetto-meta-core": "1.2.0", - "@metacell/geppetto-meta-ui": "1.2.0", + "@metacell/geppetto-meta-client": "file:.yalc/@metacell/geppetto-meta-client", + "@metacell/geppetto-meta-core": "file:.yalc/@metacell/geppetto-meta-core", + "@metacell/geppetto-meta-ui": "file:.yalc/@metacell/geppetto-meta-ui", "@nosferatu500/react-sortable-tree": "3.0.5", "@sentry/integrations": "^6.16.1", "@sentry/react": "^6.16.1", "@sentry/tracing": "^6.16.1", - "csp-html-webpack-plugin": "^5.1.0", "jquery": "^3.6.0", "js-base64": "^3.6.1", "less-vars-to-js": "^1.3.0", diff --git a/webapp/webpack.config.js b/webapp/webpack.config.js index c5083c6e..4dd9fc52 100644 --- a/webapp/webpack.config.js +++ b/webapp/webpack.config.js @@ -2,7 +2,6 @@ const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); -const CspHtmlWebpackPlugin = require('csp-html-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); /* *var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; @@ -148,16 +147,6 @@ module.exports = function (env) { */ chunks: [], }), - new CspHtmlWebpackPlugin({ - 'default-src': "'self'", - 'script-src': ["'self'", "'unsafe-inline'"], - 'style-src': ["'self'", "'unsafe-inline'"], - 'img-src': ["'self'", 'data:', 'blob:'], - 'frame-ancestors': ["'self' http: https: http://localhost http://localhost:8081 *"] - }, { - enabled: true, - hashingMethod: 'sha256', - }), new webpack.DefinePlugin({ 'process.env': { NODE_ENV: JSON.stringify(isProduction ? 'production' : 'development') } }), new MiniCssExtractPlugin({ filename: '[name].css' }), ],