Commit 7ab16e2b authored by NGPixel's avatar NGPixel

fix: disable SRI at build time

parent 9c40975a
...@@ -199,6 +199,7 @@ ...@@ -199,6 +199,7 @@
v-model='config.securitySRI' v-model='config.securitySRI'
persistent-hint persistent-hint
hint='This ensure that resources such as CSS and JS files are not altered during delivery.' hint='This ensure that resources such as CSS and JS files are not altered during delivery.'
disabled
) )
v-divider.mt-3 v-divider.mt-3
......
...@@ -14,7 +14,7 @@ const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin') ...@@ -14,7 +14,7 @@ const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin')
const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin') const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin')
const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin') const VuetifyLoaderPlugin = require('vuetify-loader/lib/plugin')
const WebpackBarPlugin = require('webpackbar') 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 babelConfig = fs.readJsonSync(path.join(process.cwd(), '.babelrc'))
const cacheDir = '.webpack-cache/cache' const cacheDir = '.webpack-cache/cache'
...@@ -218,10 +218,10 @@ module.exports = { ...@@ -218,10 +218,10 @@ module.exports = {
sync: 'runtime.js', sync: 'runtime.js',
defaultAttribute: 'async' defaultAttribute: 'async'
}), }),
new SriWebpackPlugin({ // new SriWebpackPlugin({
hashFuncNames: ['sha256', 'sha512'], // hashFuncNames: ['sha256', 'sha512'],
enabled: true // enabled: true
}), // }),
new WebpackBarPlugin({ new WebpackBarPlugin({
name: 'Client Assets' name: 'Client Assets'
}), }),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment