Skip to content

Commit 6ba0f00

Browse files
committed
Fixes on webpack
1 parent eea03c9 commit 6ba0f00

3 files changed

Lines changed: 3 additions & 16 deletions

File tree

webapp/package.bak

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"@sentry/integrations": "^6.16.1",
2727
"@sentry/react": "^6.16.1",
2828
"@sentry/tracing": "^6.16.1",
29-
"csp-html-webpack-plugin": "^5.1.0",
3029
"jquery": "^3.6.0",
3130
"js-base64": "^3.6.1",
3231
"less-vars-to-js": "^1.3.0",

webapp/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@
1919
"@material-ui/core": "4.12.1",
2020
"@material-ui/icons": "^4.11.2",
2121
"@material-ui/lab": "^4.0.0-alpha.60",
22-
"@metacell/geppetto-meta-client": "1.2.0",
23-
"@metacell/geppetto-meta-core": "1.2.0",
24-
"@metacell/geppetto-meta-ui": "1.2.0",
22+
"@metacell/geppetto-meta-client": "file:.yalc/@metacell/geppetto-meta-client",
23+
"@metacell/geppetto-meta-core": "file:.yalc/@metacell/geppetto-meta-core",
24+
"@metacell/geppetto-meta-ui": "file:.yalc/@metacell/geppetto-meta-ui",
2525
"@nosferatu500/react-sortable-tree": "3.0.5",
2626
"@sentry/integrations": "^6.16.1",
2727
"@sentry/react": "^6.16.1",
2828
"@sentry/tracing": "^6.16.1",
29-
"csp-html-webpack-plugin": "^5.1.0",
3029
"jquery": "^3.6.0",
3130
"js-base64": "^3.6.1",
3231
"less-vars-to-js": "^1.3.0",

webapp/webpack.config.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const path = require('path');
22
const webpack = require('webpack');
33
const HtmlWebpackPlugin = require('html-webpack-plugin');
44
const CopyWebpackPlugin = require('copy-webpack-plugin');
5-
const CspHtmlWebpackPlugin = require('csp-html-webpack-plugin');
65
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
76
/*
87
*var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
@@ -148,16 +147,6 @@ module.exports = function (env) {
148147
*/
149148
chunks: [],
150149
}),
151-
new CspHtmlWebpackPlugin({
152-
'default-src': "'self'",
153-
'script-src': ["'self'", "'unsafe-inline'"],
154-
'style-src': ["'self'", "'unsafe-inline'"],
155-
'img-src': ["'self'", 'data:', 'blob:'],
156-
'frame-ancestors': ["'self' http: https: http://localhost http://localhost:8081 *"]
157-
}, {
158-
enabled: true,
159-
hashingMethod: 'sha256',
160-
}),
161150
new webpack.DefinePlugin({ 'process.env': { NODE_ENV: JSON.stringify(isProduction ? 'production' : 'development') } }),
162151
new MiniCssExtractPlugin({ filename: '[name].css' }),
163152
],

0 commit comments

Comments
 (0)