This article was originally published on bmf-tech.com.
ReactでComponentをrequireしてたら見慣れないエラーがでました。
Environment
- Laravel
- Elixir
- Babel
- Browserify
The File is Too Large!
[BABEL] Note:The code generator has deoptimised the styling of "D:/path/to/hoge.js" as it exceeds the max of "100KB"
This error occurs when using Babel and the file size is too large.
It seems there's nothing much to worry about, but if you want to hide the warning, you can set the compact option in Babel to false.
How to edit Babel plugins when using Laravel-Elixir's browserify
This is about editing plugins, but it might be useful for options as well.
However, even if you hide the warning, the file remains large, so I addressed it by compressing the file.
gulp --production
I wasn't quite sure how to change the options ヽ(´ー`)ノ
Top comments (0)