Browse Source

Avoid loading all the moment locales

JC Brand 6 years ago
parent
commit
a5fdbb0e8a
2 changed files with 186 additions and 9516 deletions
  1. 182 9516
      dist/converse.js
  2. 4 0
      webpack.config.js

File diff suppressed because it is too large
+ 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: [
         {

Some files were not shown because too many files changed in this diff