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

This commit is contained in:
Aakansha Doshi 2020-12-08 22:41:44 +05:30 committed by GitHub
parent c291edfc44
commit 88fc961559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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"),