Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Azure CI Pipeline Not Preparing Minified Files using BundlerMinifier into Artifact

$
0
0

Utilizing Azure CI Pipelines to help build and prepare my artifact for deployment, the minified files seem to be excluded from the prepared artifact.Looking at the build logs I can see the files get minified successfully:

Bundler: Begin processing bundleconfig.json Minified wwwroot/.../script.min.js

The build successfully minifies the files but the artifact is missing them. The files aren't in the wrong directory or anything they are completely missing from the artifact.

Here is the CI Build Step:

- task: VSBuild@1  displayName: Build Solution  inputs:    solution: '$(solution)'    msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(Build.ArtifactStagingDirectory)"'    platform: '$(buildPlatform)'    configuration: '$(buildConfiguration)'

NuGet used for bundling/minifying: https://github.com/madskristensen/BundlerMinifier

Issue(not raised by me, I did try the "solution" there but it didn't work) on their GitHub here: https://github.com/madskristensen/BundlerMinifier/issues/518

Something curious I noticed during my testing is publishing the solution locally from Visual Studio successfully deploys these minified files.So does building the project locally as well. It seems to be only on my CI that the files aren't successfully wrapped up into the resulting build.This leads me to believe the project itself is fine, just the steps taken within the CI aren't quite right.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>