Skip to content

Generated index.html should contain a <noscript> tag #854

Closed
@nanomad

Description

@nanomad

What problem does this feature solve?

By default a project generated by vue-cli doesn't pass the no-js Lighthouse inspection:

https://developers.google.com/web/tools/lighthouse/audits/no-js

What does the proposed API look like?

vue-cli should add something like the following in index.html inside the body tag to notify users that Javascript is mandatory:

<noscript>
    <strong>We're sorry but {{APP_NAME}} doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions