Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
7ab16e2b
Commit
7ab16e2b
authored
Feb 01, 2020
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: disable SRI at build time
parent
9c40975a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
admin-general.vue
client/components/admin/admin-general.vue
+1
-0
webpack.prod.js
dev/webpack/webpack.prod.js
+5
-5
No files found.
client/components/admin/admin-general.vue
View file @
7ab16e2b
...
@@ -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
...
...
dev/webpack/webpack.prod.js
View file @
7ab16e2b
...
@@ -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'
}),
}),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment