This is a breaking change, moment is no longer with us, let us have a dayjs of silence.
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -4,9 +4,6 @@ const CracoLessPlugin = require("craco-less");
|
||||
const SentryWebpackPlugin = require("@sentry/webpack-plugin");
|
||||
const {convertLegacyToken} = require('@ant-design/compatible/lib');
|
||||
const {theme} = require('antd/lib');
|
||||
const {getLoader, loaderByName} = require("@craco/craco");
|
||||
const AntdMomentWebpackPlugin = require("@ant-design/moment-webpack-plugin");
|
||||
const {writeFile} = require("fs");
|
||||
|
||||
const {defaultAlgorithm, defaultSeed} = theme;
|
||||
|
||||
@@ -38,6 +35,7 @@ module.exports = {
|
||||
lessOptions: {
|
||||
modifyVars: {
|
||||
...v4Token,
|
||||
// TODO: This will no longer work in AntD 5.0
|
||||
...(process.env.NODE_ENV === "development"
|
||||
? {"colorPrimary": "#a51d1d"}
|
||||
: {
|
||||
@@ -66,7 +64,6 @@ module.exports = {
|
||||
],
|
||||
webpack: {
|
||||
configure: (webpackConfig) => {
|
||||
// config.plugins.push(new AntdMomentWebpackPlugin());
|
||||
return {
|
||||
...webpackConfig,
|
||||
// Required for Dev Server
|
||||
|
||||
Reference in New Issue
Block a user