Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3aeec210
Commit
3aeec210
authored
Apr 23, 2020
by
Lukas Eipert
Committed by
Mike Greiling
May 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Webpack: Use contenthash for hash generation
parent
6717786f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
config/webpack.config.js
config/webpack.config.js
+9
-7
No files found.
config/webpack.config.js
View file @
3aeec210
...
...
@@ -141,8 +141,8 @@ module.exports = {
output
:
{
path
:
path
.
join
(
ROOT_PATH
,
'
public/assets/webpack
'
),
publicPath
:
'
/assets/webpack/
'
,
filename
:
IS_PRODUCTION
?
'
[name].[c
hunk
hash:8].bundle.js
'
:
'
[name].bundle.js
'
,
chunkFilename
:
IS_PRODUCTION
?
'
[name].[c
hunk
hash:8].chunk.js
'
:
'
[name].chunk.js
'
,
filename
:
IS_PRODUCTION
?
'
[name].[c
ontent
hash:8].bundle.js
'
:
'
[name].bundle.js
'
,
chunkFilename
:
IS_PRODUCTION
?
'
[name].[c
ontent
hash:8].chunk.js
'
:
'
[name].chunk.js
'
,
globalObject
:
'
this
'
,
// allow HMR and web workers to play nice
},
...
...
@@ -191,7 +191,7 @@ module.exports = {
test
:
/icons
\.
svg$/
,
loader
:
'
file-loader
'
,
options
:
{
name
:
'
[name].[hash:8].[ext]
'
,
name
:
'
[name].[
content
hash:8].[ext]
'
,
},
},
{
...
...
@@ -210,7 +210,7 @@ module.exports = {
{
loader
:
'
worker-loader
'
,
options
:
{
name
:
'
[name].[hash:8].worker.js
'
,
name
:
'
[name].[
content
hash:8].worker.js
'
,
inline
:
IS_DEV_SERVER
,
},
},
...
...
@@ -222,7 +222,7 @@ module.exports = {
exclude
:
/node_modules/
,
loader
:
'
file-loader
'
,
options
:
{
name
:
'
[name].[hash:8].[ext]
'
,
name
:
'
[name].[
content
hash:8].[ext]
'
,
},
},
{
...
...
@@ -232,7 +232,7 @@ module.exports = {
{
loader
:
'
css-loader
'
,
options
:
{
name
:
'
[name].[hash:8].[ext]
'
,
name
:
'
[name].[
content
hash:8].[ext]
'
,
},
},
],
...
...
@@ -242,13 +242,15 @@ module.exports = {
include
:
/node_modules
\/
katex
\/
dist
\/
fonts/
,
loader
:
'
file-loader
'
,
options
:
{
name
:
'
[name].[hash:8].[ext]
'
,
name
:
'
[name].[
content
hash:8].[ext]
'
,
},
},
],
},
optimization
:
{
// Replace 'hashed' with 'deterministic' in webpack 5
moduleIds
:
'
hashed
'
,
runtimeChunk
:
'
single
'
,
splitChunks
:
{
maxInitialRequests
:
4
,
...
...
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