vuejs-datepicker
vuejs-datepicker copied to clipboard
Extract styles to separate CSS file
The styles of this component are included in the JS distribution file, so at runtime they will be added to the <head>
tag of my application. Because this can violate CSP, I want to extract CSS to a separate file, so the styles can be processed in my Webpack workflow as usual.
The rollup-plugin-vue
supports doing the extraction since v4, so this PR updates some dependencies and enables CSS extraction. This results in separate CSS files in the dist/
folder after running yarn build
.
I'm not sure if my changes are the best way to achieve this. Maybe some additional changes will be needed. Feel free to add other changes or give me some hints to improve this PR.
Coverage remained the same at 100.0% when pulling 5bec20fd081aff524d2d5fe6ce84b5fee1e25832 on ledermann:extract-css into 7cc1c3229d95afecbbe0ac723872b99d192599d4 on charliekassel:master.
@ledermann , thanks for help! I will use it on my fork :)