vuejs-datepicker icon indicating copy to clipboard operation
vuejs-datepicker copied to clipboard

Extract styles to separate CSS file

Open ledermann opened this issue 5 years ago • 2 comments

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.

ledermann avatar Nov 24 '18 15:11 ledermann

Coverage Status

Coverage remained the same at 100.0% when pulling 5bec20fd081aff524d2d5fe6ce84b5fee1e25832 on ledermann:extract-css into 7cc1c3229d95afecbbe0ac723872b99d192599d4 on charliekassel:master.

coveralls avatar Nov 24 '18 15:11 coveralls

@ledermann , thanks for help! I will use it on my fork :)

dima-hx avatar Jan 18 '21 15:01 dima-hx