Skip to content

Commit

Permalink
perf(images): add webpack image loader
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow81627 committed Dec 14, 2019
1 parent d8c3acf commit 44010bb
Show file tree
Hide file tree
Showing 4 changed files with 642 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/hero.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<template>
<header v-editable="blok">
<v-parallax :src="require('~/assets/img/header-bg.jpg')">
<v-parallax
:src="require('~/assets/img/header-bg.jpg')"
:style="{
backgroundColor: require('~/assets/img/header-bg.jpg?lqip-colors')[0],
}"
>
<v-row align="center" justify="center">
<v-col class="text-center" cols="12">
<h1
Expand Down
1 change: 1 addition & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ module.exports = {
// Doc: https://github.com/nuxt-community/stylelint-module
// '@nuxtjs/stylelint-module',
'@nuxtjs/vuetify',
'@bazzite/nuxt-optimized-images',
],

/*
Expand Down

1 comment on commit 44010bb

@vercel
Copy link

@vercel vercel bot commented on 44010bb Dec 14, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.