mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-27 09:04:31 +02:00
fix: support mobile devices in examples (#2380)
This change adds the standard meta tag for supporting mobile devices. Now when viewing on mobile the viewport width will adapt to the device. https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag#Viewport_basics
This commit is contained in:
committed by
Ian Storm Taylor
parent
7fdfce1289
commit
3093b0cf61
@@ -68,6 +68,16 @@ const config = {
|
||||
title: 'Slate',
|
||||
template: HtmlWebpackTemplate,
|
||||
inject: false,
|
||||
// Note: this is not the correct format meta for HtmlWebpackPlugin, which
|
||||
// accepts a single object of key=name and value=content. We need to
|
||||
// format it this way for HtmlWebpackTemplate which expects an array of
|
||||
// objects instead.
|
||||
meta: [
|
||||
{
|
||||
name: 'viewport',
|
||||
content: 'width=device-width, initial-scale=1',
|
||||
},
|
||||
],
|
||||
scripts: ['https://cdn.polyfill.io/v2/polyfill.min.js'],
|
||||
links: [
|
||||
'https://fonts.googleapis.com/css?family=Roboto:400,400i,700,700i&subset=latin-ext',
|
||||
|
Reference in New Issue
Block a user