Skip to content

Commit 23de7bf

Browse files
fix(webpack): fixed the copying of the icons (#16)
1 parent 1f1c399 commit 23de7bf

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

webpack.config.js

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ const config = {
6060
}),
6161
new CopyPlugin({
6262
patterns: [
63-
{from: "./node_modules/web-tree-sitter/tree-sitter.wasm", to: distDir},
63+
{
64+
from: "./node_modules/web-tree-sitter/tree-sitter.wasm",
65+
to: distDir,
66+
},
6467
{
6568
from: "./server/src/languages/tolk/stubs/stubs.tolk",
6669
to: path.join(distDir, "stubs"),
@@ -77,21 +80,22 @@ const config = {
7780
from: "./server/src/languages/tlb/tree-sitter-tlb/tree-sitter-tlb.wasm",
7881
to: distDir,
7982
},
80-
{from: "./client/src/assets/icons/ton-icon.svg", to: path.join(distDir, "icons")},
81-
{
82-
from: "./client/src/assets/icons/icon-tlb-dark.svg",
83-
to: path.join(distDir, "icons"),
84-
},
8583
{
86-
from: "./client/src/assets/icons/icon-boc-dark.svg",
87-
to: path.join(distDir, "icons"),
84+
from: "./client/src/assets/icons/*",
85+
to: path.join(distDir, "icons", "[name][ext]"),
8886
},
8987
{
9088
from: "server/src/languages/fift/asm/asm.json",
9189
to: distDir,
9290
},
93-
{from: "./package.server.json", to: path.join(distDir, "package.json")},
94-
{from: "./README.md", to: path.join(distDir, "README.md")},
91+
{
92+
from: "./package.server.json",
93+
to: path.join(distDir, "package.json"),
94+
},
95+
{
96+
from: "./README.md",
97+
to: path.join(distDir, "README.md"),
98+
},
9599
],
96100
}),
97101
],

0 commit comments

Comments
 (0)