From 7ab16e2bf3a45adbeec6c4bfcabae6e371ff71c1 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sat, 1 Feb 2020 16:14:25 -0500 Subject: [PATCH] fix: disable SRI at build time --- client/components/admin/admin-general.vue | 1 + dev/webpack/webpack.prod.js | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/client/components/admin/admin-general.vue b/client/components/admin/admin-general.vue index b1085ad5..d7f3141d 100644 --- a/client/components/admin/admin-general.vue +++ b/client/components/admin/admin-general.vue @@ -199,6 +199,7 @@ v-model='config.securitySRI' persistent-hint hint='This ensure that resources such as CSS and JS files are not altered during delivery.' + disabled ) v-divider.mt-3 diff --git a/dev/webpack/webpack.prod.js b/dev/webpack/webpack.prod.js index b501c1d3..431f6282 100644 --- a/dev/webpack/webpack.prod.js +++ b/dev/webpack/webpack.prod.js @@ -14,7 +14,7 @@ const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin') const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin') const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin') const WebpackBarPlugin = require('webpackbar') -const SriWebpackPlugin = require('webpack-subresource-integrity') +// const SriWebpackPlugin = require('webpack-subresource-integrity') const babelConfig = fs.readJsonSync(path.join(process.cwd(), '.babelrc')) const cacheDir = '.webpack-cache/cache' @@ -218,10 +218,10 @@ module.exports = { sync: 'runtime.js', defaultAttribute: 'async' }), - new SriWebpackPlugin({ - hashFuncNames: ['sha256', 'sha512'], - enabled: true - }), + // new SriWebpackPlugin({ + // hashFuncNames: ['sha256', 'sha512'], + // enabled: true + // }), new WebpackBarPlugin({ name: 'Client Assets' }),