Skip to content

Commit

Permalink
fix: disable SRI at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Feb 1, 2020
1 parent 9c40975 commit 7ab16e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions client/components/admin/admin-general.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions dev/webpack/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
}),
Expand Down

0 comments on commit 7ab16e2

Please sign in to comment.