add kvision template
This commit is contained in:
parent
5e69799136
commit
3a33062cd4
15 changed files with 228 additions and 1 deletions
15
modules/server/webpack.config.d/moment.js
Normal file
15
modules/server/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