Skip to content

Commit

Permalink
refactor: enable dist hash by default (#1802)
Browse files Browse the repository at this point in the history
* refactor: enable dist hash by default

* ci: update build script

* ci: set node version

* ci: set node version

* ci: remove useless preview ci

* refactor: correct logic
  • Loading branch information
PeachScript authored Jul 31, 2023
1 parent dbf20d9 commit 7ab05d2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 228 deletions.
55 changes: 0 additions & 55 deletions .github/workflows/preview-build.yml

This file was deleted.

137 changes: 0 additions & 137 deletions .github/workflows/preview-deploy.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/preview-start.yml

This file was deleted.

13 changes: 8 additions & 5 deletions packages/preset-dumi/src/plugins/features/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,15 @@ export default (api: IApi) => {
});

// re-enable @ & @@ umi default alias for integrated mode
if (isIntegrateUmi || api.args?.dumi) {
api.modifyDefaultConfig(memo => {
api.modifyDefaultConfig(memo => {
if (isIntegrateUmi || api.args?.dumi) {
memo.alias['@'] = api.paths.absSrcPath;
memo.alias['@@'] = api.paths.absTmpPath;
}

// enable dist hash by default
memo.hash = true;

return memo;
});
}
return memo;
});
};

1 comment on commit 7ab05d2

@vercel
Copy link

@vercel vercel bot commented on 7ab05d2 Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dumi – ./

dumi-git-1x-chencheng.vercel.app
dumi-chencheng.vercel.app
v1.d.umijs.org

Please sign in to comment.