I'm using vue2-datepicker for a project and everything works great locally. When I deploy out to the server through a release on Azure DevOp and access the project there, the datepicker loses the styling. I'm importing an override stylesheet to our view for some minor changes for the datepicker and that stylesheet is then importing the vue2-datepicker index.scss.
views/home.vue
<style lang="scss">
@import 'src/design/variables.scss';
@import 'src/design/scss/index.scss';
</style
override stylesheet
//override styles here..
@import '~vue2-datepicker/scss/index.scss
We are building it as a web component so as part of the build we are using
npm run build:wc
Our azure-pipelines.yaml looks something like this:
steps:
task: NodeTool@0 inputs: versionSpec: '12.18.1' displayName: 'Install Node.js'
script: | npm install npm run build:wc displayName: 'install project and build web component'