と書いて webpack でビルドすると、生成される bundle ファイルのサイズが非常に大きくなってしまいます。これは、moment.js が持つすべてのロケールファイルが bundle ファイルに含まれてしまうためです。ファイルサイズにシビアなフロントエンドではかなり大きな問題です。 (上図は source-map-explorer を使って生成しました) 解決策 webpack の IgnorePlugin か ContextReplacementPlugin を使えば、この問題を回避することが出来ます。 IgnorePlugin を使う場合 「デフォルトの en 以外にロケールファイルは必要ない」という場合は、IgnorePlugin が使えます。 const webpack = require('webpack'); module.exports = { //... plugi
双剣問題についてはyatteiki.fmを参照してください。 双剣問題に関しては言いたいことがふたつあって、ひとつは小菅さんも言ってたけど、「別に結婚とかしたからといって楽になったり落ち着いたりするわけじゃない、むしろその分剣を振り続けなきゃならない」ってことで、ひとりだったらサボっちゃうところも、だれかと一緒に生活をする、その生活をやっていき続けるためにはサボることができなくなり、むしろ双剣を握り続けるモチベーションになるということがひとつ。 もうひとつが、双剣を振り続けてると「それが当たり前の環境」になっていって、双剣を握り続けるということが特別なことではなくなるということ。というか、特別なことじゃなくならないと双剣は握り続けられない、ということ。 たとえば、カンファレンスで発表をするということ。じつは、初めてカンファレンスで発表する日、わたしは緊張とストレスでトイレで吐いていた。そん
This post is published under CC BY-NC-SA 4.0 license. Let me know if you translate to other languages so I can add to the list. Japanese version by me hereSimplified Chinese version by @sqrtthree hereKorean Version by @whello64 hereSpanish Version by @rodkings herePortuguese Verizon by @CarolinaPascale, @CaiqueMitsuoka, and @felipesoares6_ One wonderful Sunday in Bushwick, Brooklyn. I found a book
We built Electrode, the react/node.js application platform that powers walmart.com with several goals in mind, including ease of use, re-usability of components across applications and, most importantly, performance. We use server side rendering for almost all of our applications for two reasons: Improved performance for the customerBetter for SEOIn our tests, however, we found that React’s render
The ultimate font manager app for MacThe ultimate font manager app for macOS that offers a seamless font management experience. It combines speed, intuitive functionality, and professional capabilities, empowering users to effortlessly preview, install, organize, and share fonts.Buy Now Download Requires macOS 10.15 or newer. macOS Sonoma ready. What's New in RightFont 8.0RightFont 8.0 brings an a
Karabiner 使えない対策: Hammerspoon で macOS の修飾キーつきホットキーのキーリマップを実現するMacOSXSierra 背景 http://qiita.com/naoya@github/items/56a34be85710f4ed5531 でも書いたとおり Karabiner が使えない現状、修飾キーつきのホットキーのカスタマイズをどうするかという問題がある。記事を書いた時点では macOS の DefaultKeybidings.dict でショートカットを定義していたが、Hammerspoon を使うことでやりたいことが実現できたので、こちらの方法に移行した。 課題に感じてたこと http://qiita.com/naoya@github/items/56a34be85710f4ed5531#comment-1554604656a7ec49f63d こちら
いまいちピンとくる言い方が分からないけれど,つまりはこういうこと. [ { id => 1, value => 'foo', }, { id => 2, value => 'bar', }, ] このようなデータ構造があったときに,以下のようにidをkeyとしてハッシュにしたい. { 1 => { id => 1, value => 'foo', }, 2 => { id => 2, value => 'bar', } } 割とよくあることなので,普段はmapを使ってこのように書いている. my $x = +{map { ($_->{id} => $_) } @users}; これは,List::Utilのreduceを使っても同じように書ける.引数の先頭がハッシュリファレンスになっていて,それを引き回すことで実現している. use List::Util qw/reduce/; my $x
Which AI Announcement From Google I/O 2024 Excites You the Most?The spotlight was on Artificial Intelligence at Google's I/O developer conference on Tuesday. So much so that the company mentioned "AI" over 120 times during the keynote address. This emphasis reflects Google's strong focus on advancing AI technologies and integrating them into various products and services.
2年9か月ぶりのニュー・アルバム『リラクサー』を発売したアルト・ジェイ、東京1夜限りの来日公演が決定!
TestDisk and PhotoRec 7.2 have been released! Read the released notes for more information. If you have lost partition or strange problem with your hard disk partitions, run TestDisk to recover your data. TestDisk detects numerous filesystem including NTFS, FAT12, FAT16, FAT32, exFAT, ext2, ext3, ext4, btrfs, BeFS, CramFS, HFS, JFS, Linux Raid, Linux Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS. TestD
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く