vue-cli-plugin-moment

moment.js plugin for vue-cli

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
vue-cli-plugin-moment
0.1.14 years ago4 years agoMinified + gzip package size for vue-cli-plugin-moment in KB

Readme

vue-cli-plugin-moment
NPM MIT This plugin configures webpack's use of moment.js to only include a few locales. Desired locales can be set by entering a CSV of moment.js locales during installation, or by setting them manually in your vue.config.js. Below is an example configuration that includes only the English locales. ```js module.exports = { pluginOptions: {
moment: {
locales: ['en']
}
} } ``` To demonstrate the payload differences to expect, here is a before and after using the above configuration. | Before | After | | :----: |:-----:| | | |