Browse Source

optimize: omit moment/locale/*

Yuki Takei 9 years ago
parent
commit
3b6c80cfd0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      config/webpack.common.js

+ 3 - 0
config/webpack.common.js

@@ -102,6 +102,9 @@ module.exports = function (options) {
         $: "jquery",
       }),
 
+      // omit moment/locale/*.js
+      new webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /ja/),
+
     ]
   };
 }