Skip to content

Commit

Permalink
fix(bundle-script): Removed shell hash removal
Browse files Browse the repository at this point in the history
zepdev-react-scripts now removes the hashes automatically so no need to remove them in the bundle
script
  • Loading branch information
sebbuku committed Apr 10, 2019
1 parent ff0e975 commit 198962c
Show file tree
Hide file tree
Showing 2 changed files with 190 additions and 171 deletions.
8 changes: 0 additions & 8 deletions bundlehandler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@ cp -r build/zepicons.* bundle/assets/fonts
sed -i.bak 's@/\*.*\*/@@g' $TARGET_FILE
rm $TARGET_FILE.bak

# delete hash from font name in css file
for font in eot woff woff2 ttf svg
do
sed -i.bak 's/\(\.\)\(.[^\.]*\)\(\.'$font'\)/\3/g' $TARGET_FILE

done
rm $TARGET_FILE.bak

# change fonts path in css files
sed -i.bak 's@/static/media/@assets/fonts/@g' $TARGET_FILE
sed -i.bak 's@/zepicons@assets/fonts/zepicons@g' $TARGET_FILE
Expand Down
Loading

0 comments on commit 198962c

Please sign in to comment.