소스 검색

Avoid loading all the moment locales

JC Brand 6 년 전
부모
커밋
a5fdbb0e8a
2개의 변경된 파일186개의 추가작업 그리고 9516개의 파일을 삭제
  1. 182 9516
      dist/converse.js
  2. 4 0
      webpack.config.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 182 - 9516
dist/converse.js


+ 4 - 0
webpack.config.js

@@ -2,6 +2,7 @@
 'use strict'
 const minimist = require('minimist');
 const path = require('path');
+const webpack = require('webpack');
 
 const config = {
     entry: path.resolve(__dirname, 'src/converse.js'),
@@ -13,6 +14,9 @@ const config = {
         filename: 'converse.js'
     },
     devtool: 'source-map',
+    plugins: [
+        new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)
+    ],
     module: {
         rules: [
         {

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.