Browse Source

add separate entry point for fonts as its messing up the js bundle (#2485)

Aakansha Doshi 4 năm trước cách đây
mục cha
commit
88fc961559
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/packages/excalidraw/webpack.prod.config.js

+ 2 - 1
src/packages/excalidraw/webpack.prod.config.js

@@ -7,7 +7,8 @@ const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
 module.exports = {
   mode: "production",
   entry: {
-    "excalidraw.min": ["./index.tsx", "../../../public/fonts.css"],
+    "excalidraw.min": "./index.tsx",
+    "fonts.min": "../../../public/fonts.css",
   },
   output: {
     path: path.resolve(__dirname, "dist"),