From 6ef398c3911bc709c9b8f48f9ff6b25a5296c8a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Gr=C3=A4we?= Date: Wed, 8 Aug 2018 23:05:53 +0200 Subject: [PATCH] Fix code style --- meta.js | 6 +++--- template/nuxt.config.js | 9 +++------ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/meta.js b/meta.js index 54a481d..ca1902b 100755 --- a/meta.js +++ b/meta.js @@ -1,7 +1,7 @@ module.exports = { helpers: { escape: function (value) { - return value.replace(/'/g, '''); + return value.replace(/'/g, ''') } }, prompts: { @@ -19,7 +19,7 @@ module.exports = { author: { 'type': 'string', 'message': 'Author' - }, + } }, completeMessage: '{{#inPlace}}To get started:\n\n npm install # Or yarn\n npm run dev{{else}}To get started:\n\n cd {{destDirName}}\n npm install # Or yarn\n npm run dev{{/inPlace}}' -}; +} diff --git a/template/nuxt.config.js b/template/nuxt.config.js index 498178d..6edaa6c 100755 --- a/template/nuxt.config.js +++ b/template/nuxt.config.js @@ -3,12 +3,11 @@ const glob = require('glob-all') const path = require('path') class TailwindExtractor { - static extract(content) { + static extract (content) { return content.match(/[A-Za-z0-9-_:\/]+/g) || [] } } - module.exports = { /* ** Headers of the page @@ -22,9 +21,7 @@ module.exports = { { hid: 'description', name: 'description', content: '{{escape description }}' } ], link: [ - { - rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' - } + { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } ] }, /* @@ -76,7 +73,7 @@ module.exports = { ]), extractors: [{ extractor: TailwindExtractor, - extensions: ["vue"] + extensions: ['vue'] }], whitelist: ['html', 'body'] })