Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: webpack config changes #419

Merged
merged 13 commits into from
Apr 22, 2022
Merged

feat: webpack config changes #419

merged 13 commits into from
Apr 22, 2022

Conversation

ursucarina
Copy link
Contributor

@ursucarina ursucarina commented Apr 22, 2022

Updates to webpack configuration

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

Separate dev & prod settings to two files
Always clean builds
Fix for hot reload feature
Use CDN for react and react-dom in prod
Open local site in chrome browser after webpack build is ready (when yarn start is used)

@ursucarina ursucarina requested review from a team, anrusina, jsonporter and olga-union and removed request for a team April 22, 2022 02:50
Signed-off-by: Carina Ursu <[email protected]>
@codecov
Copy link

codecov bot commented Apr 22, 2022

Codecov Report

Merging #419 (66df04a) into master (a855f9b) will increase coverage by 0.17%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #419      +/-   ##
==========================================
+ Coverage   67.08%   67.25%   +0.17%     
==========================================
  Files         407      406       -1     
  Lines        9147     9123      -24     
  Branches     1614     1610       -4     
==========================================
  Hits         6136     6136              
+ Misses       3011     2987      -24     
Impacted Files Coverage Δ
src/components/App/App.tsx 0.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cbc210c...66df04a. Read the comment docs.

webpack.prod.config.ts Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
webpack.common.config.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
webpack.common.config.ts Outdated Show resolved Hide resolved
Signed-off-by: Carina Ursu <[email protected]>
Signed-off-by: Carina Ursu <[email protected]>
Signed-off-by: Carina Ursu <[email protected]>
@ursucarina ursucarina requested a review from anrusina April 22, 2022 20:13
}
const distPath = path.join(__dirname, 'dist');
app.use(
// This path should be in sync with the `publicPath` from webpack config.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this comment is redundant

const BASE_URL = process.env.BASE_URL || '';

/** All emitted assets will have relative path to this path
* every time it is changed - the index.js app.use should also be updated.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit - line 19 is redundant

@flyte-bot
Copy link
Collaborator

🎉 This PR is included in version 0.55.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants