Skip to content

Commit

Permalink
Revert msbuild js compress task (#79)
Browse files Browse the repository at this point in the history
* revert msbuild js compress task

* remove custom task
  • Loading branch information
lolochristen authored Aug 26, 2024
1 parent 86476f0 commit 45d0472
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ jobs:
api_location: "" # Api source code path - optional
output_location: "wwwroot" # Built app content directory - optional
###### End of Repository/Build Configurations ######
env:
MSBUILD_CONFIGURATION: Debug
# debug to bypass js compression

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ jobs:
with:
fetch-depth: 0
filter: tree:0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Install uglify-js
run: npm install uglify-js -g
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
- name: Build
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

#
/src/OpenLayers.Blazor/wwwroot/openlayers_interop.min.js
/src/OpenLayers.Blazor/wwwroot/openlayers_interop.min.js.map

# User-specific files
*.rsuser
*.suo
Expand Down
5 changes: 5 additions & 0 deletions prebuild.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@REM compress js.
@REM due to static web apps deployment task and issue in github actions support custom msbuild tasks, this has to be called manually until a proper solution is found
@REM prerequisites: npm install uglify-js -g

uglifyjs ./src/OpenLayers.Blazor/wwwroot/openlayers_interop.js -o ./src/OpenLayers.Blazor/wwwroot/openlayers_interop.min.js -c -m --source-map "filename='./src/OpenLayers.Blazor/wwwroot/openlayers_interop.min.js.map'"
4 changes: 0 additions & 4 deletions src/OpenLayers.Blazor/OpenLayers.Blazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,4 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<Target Name="CompressJS" BeforeTargets="Compile" Condition="$(Configuration)=='Release'">
<Exec Command="uglifyjs ./wwwroot/openlayers_interop.js -o ./wwwroot/openlayers_interop.min.js -c -m --source-map &quot;filename='./wwwroot/openlayers_interop.min.js.map'&quot;"/>
</Target>
</Project>
1 change: 1 addition & 0 deletions src/OpenLayers.Blazor/wwwroot/openlayers_interop.min.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 45d0472

Please sign in to comment.