Add legacy to precompile config