From 65a335bdd13a24a54adec696e3a81b0fb45314ff Mon Sep 17 00:00:00 2001 From: Douglas Wade Date: Tue, 31 May 2016 12:39:34 -0700 Subject: [PATCH] Add meta tags to generator (#229) --- .../generators/app/templates/hello-world-page.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/generator-react-server/generators/app/templates/hello-world-page.js b/packages/generator-react-server/generators/app/templates/hello-world-page.js index 58edc5130..4ac7f76d7 100644 --- a/packages/generator-react-server/generators/app/templates/hello-world-page.js +++ b/packages/generator-react-server/generators/app/templates/hello-world-page.js @@ -5,4 +5,14 @@ export default class SimplePage { getElements() { return ; } + + getMetaTags() { + return [ + {charset: 'utf8'}, + {'http-equiv': 'x-ua-compatible', 'content': 'ie=edge'}, + {name: 'viewport', content: 'width=device-width, initial-scale=1'}, + {name: 'description', content: 'hello world, powered by React Server'}, + {name: 'generator', content: 'React Server'} + ]; + } }