diff --git a/tools/build/build.py b/tools/build/build.py index ec3cc568..0d6e0f3b 100755 --- a/tools/build/build.py +++ b/tools/build/build.py @@ -92,13 +92,15 @@ def build_oxjs(downloads=False, geo=False): # copy & link ui_files = {'dev': [], 'min': []} + css_files = ['maplibre-gl.css'] for path, dirnames, filenames in os.walk(source_path): for filename in filenames: if '_' not in path and filename[0] not in '._' \ and not filename.endswith('~') \ - and not filename.endswith('.css') \ and '/UI/svg' not in path \ and (geo or '/Geo/' not in path): + if filename.endswith('.css') and filename not in css_files: + continue # write copies in min path source = os.path.join(path, filename) is_jquery = re.search(r'^jquery-[\d\.]+\.js$', filename)