Kafkatorio/modules/server/webpack.config.d/moment.js

16 lines
423 B
JavaScript
Raw Normal View History

2021-10-22 18:16:57 +02:00
;(function() {
const webpack = require('webpack')
try {
const moment = require("moment");
config.plugins.push(new webpack.IgnorePlugin({
resourceRegExp: /^\.\/locale$/,
contextRegExp: /moment$/,
}));
config.plugins.push(new webpack.ProvidePlugin({
moment: "moment",
"window.moment": "moment"
}));
} catch (e) {
}
})();