set assets and precompile