Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
328da7f7
Commit
328da7f7
authored
6 years ago
by
Jeremy Bowman
Browse files
Options
Downloads
Patches
Plain Diff
TE-2551 Fix commons.js optimization reliability
parent
b9092c80
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webpack.prod.config.js
+19
-3
19 additions, 3 deletions
webpack.prod.config.js
with
19 additions
and
3 deletions
webpack.prod.config.js
+
19
−
3
View file @
328da7f7
...
...
@@ -19,7 +19,14 @@ var optimizedConfig = Merge.smart(commonConfig, {
new
webpack
.
LoaderOptionsPlugin
({
// This may not be needed; legacy option for loaders written for webpack 1
minimize
:
true
}),
new
webpack
.
optimize
.
UglifyJsPlugin
()
new
webpack
.
optimize
.
UglifyJsPlugin
(),
new
webpack
.
optimize
.
CommonsChunkPlugin
({
// If the value below changes, update the render_bundle call in
// common/djangoapps/pipeline_mako/templates/static_content.html
name
:
'
commons
'
,
filename
:
'
commons.[chunkhash].js
'
,
minChunks
:
3
})
]
});
...
...
@@ -39,8 +46,17 @@ var optimizedConfig = Merge.smart(commonConfig, {
var
requireCompatConfig
=
Merge
.
smart
(
optimizedConfig
,
{
output
:
{
filename
:
'
[name].js
'
}
})
},
plugins
:
[
new
webpack
.
optimize
.
CommonsChunkPlugin
({
// If the value below changes, update the render_bundle call in
// common/djangoapps/pipeline_mako/templates/static_content.html
name
:
'
commons
'
,
filename
:
'
commons.js
'
,
minChunks
:
3
})
]
});
// Step 2: Remove the plugin entries that generate the webpack-stats.json files
// that Django needs to look up resources. We never want to accidentally
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment