tailwindcss/perf/script.sh

15 lines
521 B
Bash
Raw Normal View History

2020-08-16 13:56:21 +02:00
# Cleanup existing perf stuff
rm isolate-*.log
# Ensure we use the latest build version
npm run babelify
# Run Tailwind on the big fixture file & profile it
node --prof lib/cli.js build ./perf/fixture.css -c ./perf/tailwind.config.js -o ./perf/output.css
# Generate flame graph
node --prof-process --preprocess -j isolate*.log > ./perf/v8.json
# Now visit: https://mapbox.github.io/flamebearer/
# And drag that v8.json file in there!
# You can put "./lib" in the search box which will highlight all our code in green.