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 $ from 'jquery';
|
||||||
import getCaretCoordinates from './caret-position'
|
import getCaretCoordinates from './caret-position'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
|
import "moment/locale/nl"
|
||||||
// import mermaid from 'mermaid'
|
// import mermaid from 'mermaid'
|
||||||
// import {Network, parseDOTNetwork} from "vis-network/peer";
|
// import {Network, parseDOTNetwork} from "vis-network/peer";
|
||||||
// import PrismJS from 'prismjs'
|
// import PrismJS from 'prismjs'
|
||||||
|
|
|
@ -49,6 +49,10 @@ module.exports = env => {
|
||||||
new webpack.EnvironmentPlugin({
|
new webpack.EnvironmentPlugin({
|
||||||
DEBUG: false,
|
DEBUG: false,
|
||||||
NODE_DEBUG: false,
|
NODE_DEBUG: false,
|
||||||
|
}),
|
||||||
|
new webpack.IgnorePlugin({
|
||||||
|
resourceRegExp: /^\.\/locale$/,
|
||||||
|
contextRegExp: /moment$/,
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
//
|
//
|
||||||
|
@ -59,21 +63,21 @@ module.exports = env => {
|
||||||
//
|
//
|
||||||
optimization: {
|
optimization: {
|
||||||
usedExports: true,
|
usedExports: true,
|
||||||
// splitChunks: {
|
splitChunks: {
|
||||||
// cacheGroups: {
|
cacheGroups: {
|
||||||
// commons: {
|
commons: {
|
||||||
// test: /[\\/]node_modules[\\/]/,
|
test: /[\\/]node_modules[\\/]/,
|
||||||
// name: 'vendors',
|
name: 'vendors',
|
||||||
// chunks: 'all'
|
chunks: 'all'
|
||||||
// },
|
},
|
||||||
// styles: {
|
styles: {
|
||||||
// name: 'styles',
|
name: 'styles',
|
||||||
// test: /\.css$/,
|
test: /\.css$/,
|
||||||
// chunks: 'all',
|
chunks: 'all',
|
||||||
// enforce: true,
|
enforce: true,
|
||||||
// },
|
},
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user