Only import nl locale for moment
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2021-08-16 00:06:20 +02:00
parent c16074cabf
commit 8e96fb45ed
2 changed files with 20 additions and 15 deletions

View File

@ -8,6 +8,7 @@ import qs from 'querystring'
import $ from 'jquery';
import getCaretCoordinates from './caret-position'
import moment from 'moment'
import "moment/locale/nl"
// import mermaid from 'mermaid'
// import {Network, parseDOTNetwork} from "vis-network/peer";
// import PrismJS from 'prismjs'

View File

@ -49,6 +49,10 @@ module.exports = env => {
new webpack.EnvironmentPlugin({
DEBUG: false,
NODE_DEBUG: false,
}),
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/locale$/,
contextRegExp: /moment$/,
})
],
//
@ -59,21 +63,21 @@ module.exports = env => {
//
optimization: {
usedExports: true,
// splitChunks: {
// cacheGroups: {
// commons: {
// test: /[\\/]node_modules[\\/]/,
// name: 'vendors',
// chunks: 'all'
// },
// styles: {
// name: 'styles',
// test: /\.css$/,
// chunks: 'all',
// enforce: true,
// },
// }
// }
splitChunks: {
cacheGroups: {
commons: {
test: /[\\/]node_modules[\\/]/,
name: 'vendors',
chunks: 'all'
},
styles: {
name: 'styles',
test: /\.css$/,
chunks: 'all',
enforce: true,
},
}
}
}
}
};