1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2024-11-10 11:35:52 +01:00

move all chunks inside excalidraw-assets folder when bundling (#2484)

This commit is contained in:
Aakansha Doshi 2020-12-08 20:22:56 +05:30 committed by GitHub
parent 3be5038c14
commit bd8e860d7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,15 +7,15 @@ const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
module.exports = {
mode: "production",
entry: {
"excalidraw.min": "./index.tsx",
"fonts.min": "../../../public/fonts.css",
"excalidraw.min": ["./index.tsx", "../../../public/fonts.css"],
},
output: {
path: path.resolve(__dirname, "dist"),
library: "Excalidraw",
libraryTarget: "umd",
filename: "[name].js",
publicPath: "/excalidraw-assets/",
publicPath: "/",
chunkFilename: "excalidraw-assets/[name].js",
},
resolve: {
extensions: [".js", ".ts", ".tsx", ".css", ".scss"],
@ -68,6 +68,7 @@ module.exports = {
loader: "file-loader",
options: {
name: "[name].[ext]",
outputPath: "excalidraw-assets",
},
},
],