include maplibre-gl files in build
This commit is contained in:
parent
76b9517a78
commit
25cd3f6bb1
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue