Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
62679927
Commit
62679927
authored
8 years ago
by
Dan Abramov
Browse files
Options
Download
Email Patches
Plain Diff
Use shorter hashes in production builds
parent
80505887
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/webpack.config.prod.js
+6
-3
config/webpack.config.prod.js
with
6 additions
and
3 deletions
+6
-3
config/webpack.config.prod.js
+
6
-
3
View file @
62679927
...
...
@@ -28,8 +28,8 @@ module.exports = {
entry
:
path
.
join
(
paths
.
appSrc
,
'
index
'
),
output
:
{
path
:
paths
.
appBuild
,
filename
:
'
[name].[chunkhash].js
'
,
chunkFilename
:
'
[name].[chunkhash].chunk.js
'
,
filename
:
'
[name].[chunkhash
:8
].js
'
,
chunkFilename
:
'
[name].[chunkhash
:8
].chunk.js
'
,
publicPath
:
publicPath
},
resolve
:
{
...
...
@@ -71,6 +71,9 @@ module.exports = {
test
:
/
\.(
jpg|png|gif|eot|svg|ttf|woff|woff2
)
$/
,
include
:
[
paths
.
appSrc
,
paths
.
appNodeModules
],
loader
:
'
file
'
,
query
:
{
name
:
'
[name].[hash:8].[ext]
'
}
},
{
test
:
/
\.(
mp4|webm
)
$/
,
...
...
@@ -122,6 +125,6 @@ module.exports = {
screw_ie8
:
true
}
}),
new
ExtractTextPlugin
(
'
[name].[contenthash].css
'
)
new
ExtractTextPlugin
(
'
[name].[contenthash
:8
].css
'
)
]
};
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets