Twig sometimes breaks JavaScript or CSS
Don't put your CSS and JS files in the /templates folder. Store them on the front-end in the /web folder.

If they're not in the templates folder, Twig won't try to parse them.