Skip to content

Commit

Permalink
fix source map
Browse files Browse the repository at this point in the history
  • Loading branch information
fzumstein committed Apr 11, 2023
1 parent 22cfb7b commit 3e0713a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def prepend_license(path):
dedent(
"""\
@charset "UTF-8";/*!
* Bootstrap-xlwings v5.2.3-1
* Bootstrap-xlwings v5.2.3-2
* Copyright 2023 Zoomer Analytics GmbH
* Licensed under MIT
* Based on Bootstrap
Expand All @@ -51,6 +51,9 @@ def build():
print(npm_run_build())
prepend_license(f"{target_dir}/bootstrap-xlwings.css")
os.rename(f"{target_dir}/bootstrap-xlwings.css", f"{target_dir}/bootstrap-xlwings.min.css")
content = Path(f"{target_dir}/bootstrap-xlwings.min.css").read_text()
content = content.replace('bootstrap-xlwings.css.map', 'bootstrap-xlwings.min.css.map')
Path(f"{target_dir}/bootstrap-xlwings.min.css").write_text(content)
os.rename(f"{target_dir}/bootstrap-xlwings.css.map", f"{target_dir}/bootstrap-xlwings.min.css.map")


Expand Down
6 changes: 3 additions & 3 deletions dist/bootstrap-xlwings.min.css

Large diffs are not rendered by default.

0 comments on commit 3e0713a

Please sign in to comment.