Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vscode:
extensions:
- octref.vetur@0.32.0:03mwRhlVpWDul4qBChcVUA==
29 changes: 12 additions & 17 deletions demo/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
module.exports = {
root: true,
env: {
browser: true,
node: true
},
parserOptions: {
parser: 'babel-eslint'
},
extends: [
'@nuxtjs',
'plugin:nuxt/recommended'
],
plugins: [
],
// add your custom rules here
rules: {}
}
root: true,
env: {
browser: true,
node: true,
},
parserOptions: {
parser: "babel-eslint",
},
extends: [
"jonathantreffler",
],
};
6 changes: 3 additions & 3 deletions demo/layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div>
<Nuxt />
</div>
<div>
<Nuxt />
</div>
</template>
<style>
html {
Expand Down
100 changes: 35 additions & 65 deletions demo/nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,67 +1,37 @@

export default {
/*
** Nuxt rendering mode
** See https://nuxtjs.org/api/configuration-mode
*/
mode: 'universal',
/*
** Nuxt target
** See https://nuxtjs.org/api/configuration-target
*/
target: 'static',
/*
** Headers of the page
** See https://nuxtjs.org/api/configuration-head
*/
head: {
title: process.env.npm_package_name || '',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: process.env.npm_package_description || '' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
/*
** Global CSS
*/
css: [
],
/*
** Plugins to load before mounting the App
** https://nuxtjs.org/guide/plugins
*/
plugins: [
],
/*
** Auto import components
** See https://nuxtjs.org/api/configuration-components
*/
components: true,
/*
** Nuxt.js dev-modules
*/
buildModules: [
'@nuxtjs/eslint-module',
'@nuxtjs/stylelint-module',
'@aceforth/nuxt-optimized-images'
],
/*
** Nuxt.js modules
*/
modules: [
'@nuxtjs/pwa'
],
/*
** Build configuration
** See https://nuxtjs.org/api/configuration-build/
*/
build: {
},
router: {
base: '/nuxt-gallery/'
}
}
mode: "universal",
target: "static",
head: {
title: process.env.npm_package_name || "",
meta: [
{ charset: "utf-8", },
{ name: "viewport", content: "width=device-width, initial-scale=1", },
{ hid: "description", name: "description", content: process.env.npm_package_description || "", },
],
link: [
{ rel: "icon", type: "image/x-icon", href: "/favicon.ico", },
],
},
css: [
],
plugins: [
],
components: true,
buildModules: [
"@nuxtjs/eslint-module",
"@nuxtjs/stylelint-module",
"@aceforth/nuxt-optimized-images",
],
modules: [
"@nuxtjs/pwa",
],
build: {
},
router: {
base: "/nuxt-gallery/",
},
optimizedImages: {
optimizeImagesInDev: true,
},
};
Loading