Explorar el Código

optimize: omit moment/locale/*

Yuki Takei hace 9 años
padre
commit
3b6c80cfd0
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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/),
+
     ]
   };
 }