build: Add async chunk names (#2170)

This commit is contained in:
Viorel Cojocaru
2021-06-04 07:01:23 +02:00
committed by GitHub
parent 1f49b35c89
commit 082ced3072
7 changed files with 34 additions and 11 deletions

View File

@@ -32,7 +32,10 @@ import NudeButton from "components/NudeButton";
const style = { width: 30, height: 30 };
const TwitterPicker = React.lazy(() =>
import("react-color/lib/components/twitter/Twitter")
import(
/* webpackChunkName: "twitter-picker" */
"react-color/lib/components/twitter/Twitter"
)
);
export const icons = {