Skip to content

Latest commit

 

History

History
15 lines (7 loc) · 586 Bytes

README.md

File metadata and controls

15 lines (7 loc) · 586 Bytes

intro

this package is created for a discussion at webpack/webpack#3128 about momentJS it's locale files being bundled in webpack.

project

npm run dev starts the dev server at localhost:8000, you'll see the dutch date.

Running npm run build and opening the index.html will give you the english date, although we've set locale to nl.

If you unquote // import 'moment/locale/nl'; and run build again, the dutch locale will have been included.

If you ask me, Webpack 2 treeshaking is dropping all the unused code, including all locale files.