mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 12:38:58 +08:00
update test
This commit is contained in:
parent
4705be920a
commit
54560c5daf
@ -60,6 +60,15 @@ function injectWarningCondition(config) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function externalDayjs(config) {
|
||||||
|
config.externals.dayjs = {
|
||||||
|
root: 'dayjs',
|
||||||
|
commonjs2: 'dayjs',
|
||||||
|
commonjs: 'dayjs',
|
||||||
|
amd: 'dayjs',
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
function processWebpackThemeConfig(themeConfig, theme, vars) {
|
function processWebpackThemeConfig(themeConfig, theme, vars) {
|
||||||
themeConfig.forEach(config => {
|
themeConfig.forEach(config => {
|
||||||
// rename default entry to ${theme} entry
|
// rename default entry to ${theme} entry
|
||||||
@ -118,6 +127,7 @@ webpackConfig.forEach(config => {
|
|||||||
if (process.env.RUN_ENV === 'PRODUCTION') {
|
if (process.env.RUN_ENV === 'PRODUCTION') {
|
||||||
webpackConfig.forEach(config => {
|
webpackConfig.forEach(config => {
|
||||||
addLocales(config);
|
addLocales(config);
|
||||||
|
externalDayjs(config);
|
||||||
// Reduce non-minified dist files size
|
// Reduce non-minified dist files size
|
||||||
config.optimization.usedExports = true;
|
config.optimization.usedExports = true;
|
||||||
// use esbuild
|
// use esbuild
|
||||||
|
Loading…
Reference in New Issue
Block a user