0👍
It seems like the css files are missing in your build artifacts. Please check if these css files are existing in the build artifacts(the files deployed to your server).
Please trying publish all your source files(not just the dist
folder) as artifacts and deploy to the server.
- script: |
npm install
npm run build
displayName: 'npm install and build'
- task: CopyFiles@2
inputs:
sourceFolder: $(System.DefaultWorkingDirectory)
Contents: '**' #copy all your source files
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory) # dist or build files
ArtifactName: 'www' # output artifact named www
Source:stackexchange.com