justnorris
444
6
Mix

Laravel Mix: Prevent Moment.js locales

Posted 1 year ago by justnorris

I'm using Chart.js, and webpack is complaining that the js file is too large.

I stumbled upon this topic on SO: https://stackoverflow.com/questions/25384360/how-to-prevent-moment-js-from-loading-locales-with-webpack

Looks like that answer could help me, is I was using Webpack directly, but I have no idea how to apply it to Laravel Mix.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.