mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
c274de7295
Move the rest of the configuration into template-config.js. This way the options are explicitly in the same namespace so we won't be surprised when we add a variable with the same name as an html-webpack-plugin option. Rename template extension to ejs for syntax-coloring purposes.
32 lines
939 B
JavaScript
32 lines
939 B
JavaScript
/**
|
|
* Default options for the html-webpack-plugin HTML renderer
|
|
*
|
|
* See https://github.com/ampedandwired/html-webpack-plugin#configuration
|
|
* for possible options. Any other options will be available to the template
|
|
* under `htmlWebpackPlugin.options`
|
|
*/
|
|
|
|
module.exports = {
|
|
// html-webpack-plugin options
|
|
template: './src/template.ejs',
|
|
inject: false,
|
|
|
|
// Search and metadata
|
|
title: 'Imagine, Program, Share',
|
|
description:
|
|
'Scratch is a free programming language and online community ' +
|
|
'where you can create your own interactive stories, games, ' +
|
|
'and animations.',
|
|
|
|
// override if mobile-friendly
|
|
viewportWidth: 'device-width',
|
|
|
|
// Open graph
|
|
og_image: 'https://scratch.mit.edu/images/scratch-og.png',
|
|
og_image_type: 'image/png',
|
|
og_image_width: 986,
|
|
og_image_height: 860,
|
|
|
|
// Analytics & Monitoring
|
|
ga_tracker: process.env.GA_TRACKER || ''
|
|
};
|