Skip to content

Commit

Permalink
Fixes on webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
enicolasgomez committed Dec 21, 2023
1 parent eea03c9 commit 6ba0f00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
1 change: 0 additions & 1 deletion webapp/package.bak
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 3 additions & 4 deletions webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 0 additions & 11 deletions webapp/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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' }),
],
Expand Down

0 comments on commit 6ba0f00

Please sign in to comment.