Simplify webpack #713
No reviewers
Labels
No labels
accessibility
app-parity
area: creator
area: daemon
area: design
area: devops
area: discovery
area: docs
area: installer
area: internal
area: livestream
area: performance
area: proposal
area: reposts
area: rewards
area: search
area: security
area: subscriptions
area: sync
area: ux
area: viewer
area: wallet
BEAMER
channel
comments
community PR
consider soon
core team
css
dependencies
electron
Epic
feature request
first-timers-only
good first issue
hacktoberfest
help wanted
hub-dependent
icebox
Invalid
level: 0
level: 1
level: 2
level: 3
level: 4
merge when green
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
notifications
odysee
on hold
playlists
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
recsys
redesign
regression
resilience
sdk dependent
Tom's Wishlist
trending
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-desktop#713
Loading…
Reference in a new issue
No description provided.
Delete branch "webpack"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Simplifying by adding more webpack config files?! Yep.
There are now three webpack files for the
ui
, but only because there is now a common config with the webpack essentials (entry, output, babel) and two other configs with extend the base config.Before
webpack.config.js
was the prod configwebpack.dev.config.js
was the dev configA lot of duplication of basic webpack setup
After
webpack.common.js
is the base webpack configwebpack.prod.js
extends the base configwebpack.dev.js
extends the base configAlso updated to
webpack@3
Note: Most of the additions are from yarn
cc @liamcardenas
This looks good to me other than one question about minification in production.
Does this actually add any significant performance benefit when the files are being loaded locally? I suppose marginally, since the file still needs to be read from disk and interpreted, but my guess is it is very minor.
At the same time, we fairly frequently ask users to give console output related to errors.
If there's no real performance win here, I'd suggest this is not worth the added difficulty in debugging user issues, but I could possibly be persuaded otherwise.
Good point. I'll take it out for now until I can get some real performance numbers. Then we can decide.
@seanyesmunt once this is removed, go ahead and merge this into master.
Recommended merging practices are here: https://github.com/lbryio/lbry/wiki/Branching-and-Merging
@liamcardenas you should check out above link as well
@kauffj Removed the prod minification. I don't have merge access.
@seanyesmunt accept your @lbryio invite :-)
Thanks! :)