Move CSS imports to head (#90)

This commit is contained in:
Andreas E 2019-10-15 18:33:24 +02:00 committed by arkon
parent 2b05efeb34
commit c07715350d
3 changed files with 6 additions and 5 deletions

View File

@ -24,8 +24,6 @@
</template> </template>
<style scoped lang="scss"> <style scoped lang="scss">
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
@import url("https://fonts.googleapis.com/css?family=Open+Sans");
* { * {
font-family: "Open Sans", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; font-family: "Open Sans", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
} }

View File

@ -32,10 +32,8 @@ export default {
</script> </script>
<style scoped> <style scoped>
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
@import url("https://cdn.materialdesignicons.com/4.4.95/css/materialdesignicons.min.css");
.material-holder { .material-holder {
font-family: 'Material Design Icons', 'Material Icons', sans-serif;
color: #476582; color: #476582;
margin: 0; margin: 0;
font-size: 0.85em; font-size: 0.85em;

View File

@ -3,6 +3,11 @@ module.exports = {
description: 'Free and open source manga reader for Android.', description: 'Free and open source manga reader for Android.',
dest: './public', dest: './public',
head: [ head: [
['link', { rel: "preconnect", href: 'https://cdn.materialdesignicons.com/', crossorigin:""} , ''],
['link', { rel: "preconnect", href: 'https://fonts.gstatic.com', crossorigin:""} , ''],
['link', { rel: "stylesheet", href: 'https://cdn.materialdesignicons.com/4.4.95/css/materialdesignicons.min.css', crossorigin:""} , ''],
['link', { rel: "stylesheet", href: 'https://fonts.googleapis.com/css?family=Open+Sans'} , ''],
['link', { rel: "stylesheet", href: 'https://fonts.googleapis.com/icon?family=Material+Icons'} , ''],
['script', { src: 'https://unpkg.com/flickity@2/dist/flickity.pkgd.min.js'} , ''], ['script', { src: 'https://unpkg.com/flickity@2/dist/flickity.pkgd.min.js'} , ''],
['link', { rel: "stylesheet", type: "text/css", href: 'https://unpkg.com/flickity@2/dist/flickity.min.css'} , ''], ['link', { rel: "stylesheet", type: "text/css", href: 'https://unpkg.com/flickity@2/dist/flickity.min.css'} , ''],
], ],