From 88fc9615590d986b2d75b13f907285df5445dfb5 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Tue, 8 Dec 2020 22:41:44 +0530 Subject: [PATCH] add separate entry point for fonts as its messing up the js bundle (#2485) --- src/packages/excalidraw/webpack.prod.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/packages/excalidraw/webpack.prod.config.js b/src/packages/excalidraw/webpack.prod.config.js index 233af45c..bb04502d 100644 --- a/src/packages/excalidraw/webpack.prod.config.js +++ b/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"),