vue-cli-plugin-moment

moment.js plugin for vue-cli
28,960 15
Install
npm install vue-cli-plugin-moment
Latest Version:0.1.1
License:MIT
Last Updated:Sep 12, 2018
Links: GitHub  ·  npm
Maintainer: scottbedard

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.

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

Related Packages

@urbanhire.com/vuesable

Vuesable is urbanhire vue component.

877
vue-cli-plugin-nid

这是宁皓网内部项目使用的一个 Vue CLI 插件,在使用了 TypeScript 的 Vue 项目里,可...

778 0
vue-cli-plugin-storybook

Vue CLI plugin for Storybook

187,254 276

Version History

Version Released License
0.1.1 MIT
0.1.0 MIT
Pre-releases (1)
Version Released License
0.1.0-alpha.0 MIT