added kvision web-map, cleaning up a few gradle things (tokens)
This commit is contained in:
parent
29d190b8f4
commit
6d60428ab9
31 changed files with 323 additions and 87 deletions
15
modules/web-map/webpack.config.d/moment.js
Normal file
15
modules/web-map/webpack.config.d/moment.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
;(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) {
|
||||
}
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue