Giter Club home page Giter Club logo

vueconfto-nuxt's Introduction

Vue Conf Toronto: Nuxt Demo

Vue.js Conf Toronto Demo based on Adam Wathan demo, transformed to use Nuxt.js & Purge CSS module.

Ligthouse score 🔥

nuxt-lighthouse

Project setup

npm install

Development

npm run dev

Production

Universal (SSR)

npm run build
npm start

Static Generated

npm run generate

Single Page App

npm run spa

Credits

Thanks to Adam for letting me use his project for the Vue Conf Toronto.

vueconfto-nuxt's People

Contributors

atinux avatar

Stargazers

Sayib avatar Luís Guilherme Berns Silva avatar Kenneth Lombardi avatar Hadi Zakzouk avatar Cristina Fernández Sanz avatar Jannick Scherf avatar GAURAV avatar Ramzi Youssef avatar Marcus Morba avatar Johan Guse avatar Daniel Lombraña González avatar Britta Rodenbeck avatar Peter Baričič avatar Franck Aragão avatar Micheal Mand avatar José Cage  avatar Andrew Mason avatar Alessandro Giordo avatar John Rivs avatar Zaido Blue avatar Amrit Nagi avatar Eric Howard avatar Alex Vipond avatar Lucas Fontes Gaspareto avatar John F. Mandon avatar  avatar Igor Bezsmertnyi avatar Takuma HANATANI avatar Muhammad Farid Zia avatar Jonas Galvez avatar  avatar Javier Diaz avatar

Watchers

James Cloos avatar  avatar

vueconfto-nuxt's Issues

Preload fonts

Hi,
I have a problem with preload fonts
As result, I would like to have something like that :
<link rel="preload" href="/_nuxt/fonts/5b23eeb.woff2" as="font" type="font/woff2" crossorigin>

..from my nuxt.config.js:

....
css: [
'~assets/css/tailwind.css',
'~assets/fonts/Ubuntu/index.css',
],
...
...
render: {
bundleRenderer: {
shouldPreload: (file, type) => {
if (type === 'font') return /.woff2/.test(file)
return ['script', 'style'].includes(type)
}
}
},
...

type of shouldPreload's function returns only 'script' and 'style' and never 'font'
Can you help please? THANKS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.