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:
parent
3be5038c14
commit
bd8e860d7f
@ -7,15 +7,15 @@ const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
mode: "production",
|
mode: "production",
|
||||||
entry: {
|
entry: {
|
||||||
"excalidraw.min": "./index.tsx",
|
"excalidraw.min": ["./index.tsx", "../../../public/fonts.css"],
|
||||||
"fonts.min": "../../../public/fonts.css",
|
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, "dist"),
|
path: path.resolve(__dirname, "dist"),
|
||||||
library: "Excalidraw",
|
library: "Excalidraw",
|
||||||
libraryTarget: "umd",
|
libraryTarget: "umd",
|
||||||
filename: "[name].js",
|
filename: "[name].js",
|
||||||
publicPath: "/excalidraw-assets/",
|
publicPath: "/",
|
||||||
|
chunkFilename: "excalidraw-assets/[name].js",
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: [".js", ".ts", ".tsx", ".css", ".scss"],
|
extensions: [".js", ".ts", ".tsx", ".css", ".scss"],
|
||||||
@ -68,6 +68,7 @@ module.exports = {
|
|||||||
loader: "file-loader",
|
loader: "file-loader",
|
||||||
options: {
|
options: {
|
||||||
name: "[name].[ext]",
|
name: "[name].[ext]",
|
||||||
|
outputPath: "excalidraw-assets",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user