Skip to content

Instantly share code, notes, and snippets.

@danner
danner / convert_angular_injection
Created April 2, 2015 18:09
Python script to convert angular code to allow minification using inline annotation
import re
import sys
from tempfile import mkstemp
from shutil import move
from os import remove
def convert(source_file_path):
fh, target_file_path = mkstemp()