[Vuejs]-Conditional stylesheet in Nuxt

1👍

You can extend the default HTML template from Nuxt.

Create a new file “app.html” at the root of your project and set your custom html template with .

see doc: https://nuxtjs.org/guide/views#document

// app.html

<!DOCTYPE html>
<html {{ HTML_ATTRS }}>
  <head {{ HEAD_ATTRS }}>
    {{ HEAD }}
    <!--[if IE]><link rel="stylesheet" type="text/css" href="all-ie-only.css"><![endif]-->
  </head>
  <body {{ BODY_ATTRS }}>
    {{ APP }}
  </body>
</html>

Leave a comment