Комментарии:
I'll consider this. I've been having problems with large bundled size.
ОтветитьWas already importing just the parts of lodash we were using, but followed the video and applied the moment resolver and used moment-timezone-data-webpack-plugin. Build went from 2.24MB (parsed, not gzipped) to 1.16MB. Not a huge difference on gzip though as most of the stuff that was removed compresses really well. But no need to include stuff that isn't needed or to increase memory usage of the app with locales we don't support.
ОтветитьExcellent video. 24/09/2019
ОтветитьMy appreciate for you, Jennifer Bland !
Ответитьimport moment from "moment" have been replace this with import moment from "moment/src/moment" now getting error
WARNING in ./node_modules/moment/src/lib/locale/locales.js 78:12-46
Module not found: Error: Can't resolve './locale' in 'D:\xampp\htdocs\erp-live\node_modules\moment\src\lib\locale'