Preprocess files based off environment configuration