Fix icons copy: use directory copy instead of glob expansion
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
98bff9e3eb
commit
f727a352c3
1 changed files with 3 additions and 3 deletions
|
|
@ -31,9 +31,9 @@ let
|
|||
# Webpack CopyPlugin can't glob through these symlinks to find
|
||||
# @grafana/ui icons. Pre-copy them to the output location and patch
|
||||
# webpack to skip the CopyPlugin entry for icons.
|
||||
icons_src="node_modules/@grafana/ui/dist/public/img/icons"
|
||||
mkdir -p public/build/grafana/build/img/icons
|
||||
cp -rL "$icons_src"/* public/build/grafana/build/img/icons/
|
||||
mkdir -p public/build/grafana/build/img
|
||||
cp -rL node_modules/@grafana/ui/dist/public/img/icons \
|
||||
public/build/grafana/build/img/
|
||||
|
||||
# Remove the CopyPlugin icons entry from webpack config so it doesn't
|
||||
# fail on the symlinked glob
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue