-
Notifications
You must be signed in to change notification settings - Fork 939
refactor(site): webpack configuration #870
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
Conversation
This refactor introduces the following changes: * re-order and re-comment items to match v1 * add EnvironmentPlugin for environment variables * remove target (unnecessary, we will use browserslist)
import HtmlWebpackPlugin from "html-webpack-plugin" | ||
import * as path from "path" | ||
import { Configuration, EnvironmentPlugin } from "webpack" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NTS, one of the items i didn't get to on gap week was adding the plugin for ordering imports. I will add this in a follow-up
Codecov Report
@@ Coverage Diff @@
## main #870 +/- ##
==========================================
- Coverage 65.85% 65.75% -0.11%
==========================================
Files 203 203
Lines 13227 13226 -1
Branches 87 86 -1
==========================================
- Hits 8711 8697 -14
- Misses 3626 3635 +9
- Partials 890 894 +4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! In hindsight the piece I was missing is so obvious haha
I want to hesitate in the notion of calling anything nitty webpack config related obvious :p. It took a lot of work to customize v1 to our liking 😂 |
This refactor introduces the following changes:
Testing for #869
I added the following piece of code to test:
and verified the log showed up error-free