Doesn’t work.
Continue readingAuthor Archives: lucia
Github Action: Image Optimization Pipeline
Whenever your pull request contains image changes, this Github action will run and create a commit of optimized images.
Continue readingGit: Why Updating Submodules Rewinds Change
When you run git submodule update --remote
in a container repo, you might notice that it says:
Submodule funny_module bf722acd..02dc481d (rewind):
< That awful bugfix
Why the rewind?!
Continue readingHow to Mute Warnings of "Conflicting order between"
We use CSS modules, so it doesn’t make sense to care about importing order, but the mini-css-extract-plugin
doesn’t provide an option to turn off the conflicting warning:
chunk styles [mini-css-extract-plugin]
Conflicting order between:
* css ...
* css ...
Here’s how to mute them.
Continue readingDifference between ESLint and Prettier
What they do:
- ESLint: underline when code doesn’t comply to logical rules. Can run a script and fix some easy errors (etc. unused variables lying around)
- Prettier: doesn’t change the logic of code, only formats it (etc. removing extra spaces, turning double quotes to singles)
How to Merge When master is Not The Base Branch
If the base branch for your repository is not the default master
, you might have encountered this bizarre Pull Request problem when you try to deploy from base branch onto master
:
When Webpack Takes Too Long to Process Images
Sorting out images in Webpack is not too bad up to a point. The url-loader
+ file-loader
combination is usually enough to satisfy needs. However, when you have too many require()
for large images, it can take up to 20s or longer to hot-reload after a compile…
Here’s how to mitigate the situation.
Continue readingHow to Kill Whatever’s Running on Port 80
In terminal:
$ lsof -t -i tcp:80 | xargs kill
NodeJS: How to Find Memory Leaks
If you use NodeJS on your Backend, you have probably run into memory problems at one point or another. Compared to other systems where a child process is created and terminated with every request, Node is initiated only once, long-running, and particularly unforgiving in any task that leaves residue behind.
This post is an attempt at explaining how to dive into the seeming mess of memory lane and come up with insights, or better yet, solutions.
Continue readingnew Date() Not Valid in Safari
Not all the date formats can be used to create a date with new Date()
.