Only import nl locale for moment
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c16074cabf
commit
8e96fb45ed
|
@ -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'
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user