Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sed version for non webpack users #1

Open
hedgehogface opened this issue Oct 6, 2022 · 0 comments
Open

sed version for non webpack users #1

hedgehogface opened this issue Oct 6, 2022 · 0 comments

Comments

@hedgehogface
Copy link

Hi, thanks for this.

I am not a webpack user, so had to convert the regex to use with sed in bash.
For anyone else that wants to do the same this may save you some time...

sed -z -r -e "s/var ([^=]+)( = F[0123456789]\(\n\tfunction)[^(]/var \1\2 __\1/gmi" -e "s/( A[0123456789]\(\n[ \t]+)([^,]+)(,\n[ \t]+)(F[0123456789]\(\n)([^f]+function)/\1\2\3\4\5 ___\2/gm" elm.js > elmProfilingFreindly.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant