PackageHelper/removebloat.sh

37 lines
775 B
Bash
Raw Normal View History

2019-09-11 22:28:50 -06:00
#!/bin/sh
# This script removes some stuff in `www/node_modules` that the app doesn't need to run.
# It removes about 6MB from the build size.
2019-09-28 21:23:57 -06:00
echo "Removing bloat in node_modules..."
2019-09-11 22:28:50 -06:00
cd www/node_modules
rm -rf dom7
rm -rf path-to-regexp
rm -rf ssr-window
rm -rf template7
cd @fortawesome/fontawesome-free
rm -rf js
rm -rf less
rm -rf scss
rm -rf sprites
rm -rf svgs
cd ../..
cd jquery
rm -rf src
rm -rf external
cd ..
cd framework7
rm -rf components
rm -rf lazy-components
rm -rf less
rm -rf modules
rm -rf utils
2019-09-28 21:23:57 -06:00
cd ..
cd material-design-icons
rm -rf {action,alert,av,bower.json,communication,content,device,editor,file,gulpfile.babel.js,hardware,image,index.js,maps,navigation,notification,package.json,places,README.md,social,sprites,toggle}
2019-09-11 22:28:50 -06:00
echo "Cleanup finished"