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.