Skip to content

Commit a489803

Browse files
nanomadyyx990803
authored andcommitted
feat: add default <noscript> content (#856)
Add some default content that can be seen by browsers where JavaScript is disabled. See: https://developers.google.com/web/tools/lighthouse/audits/no-js Closes #854
1 parent 399e759 commit a489803

File tree

1 file changed

+3
-0
lines changed
  • packages/@vue/cli-service/generator/template/public

1 file changed

+3
-0
lines changed

packages/@vue/cli-service/generator/template/public/index.html

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
<title><%= options.projectName %></title>
99
</head>
1010
<body>
11+
<noscript>
12+
<strong>We're sorry but <%= options.projectName %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13+
</noscript>
1114
<div id="app"></div>
1215
<!-- built files will be auto injected -->
1316
</body>

0 commit comments

Comments
 (0)