Using Plunker With LESS

According to this update, it’s now possible to use compiled languages like LESS with plunker

According to the Client Side Usage from the Less Documentation, you should do the following:

<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet/less" type="text/css" href="style.less">
    <script src="//cdnjs.cloudflare.com/ajax/libs/less.js/1.7.3/less.min.js"></script>
  </head>
  <body>
  </body>
</html>

styles.less:

Here’s a super simple example of a less file that will chane the background color bright red

@background-color: red;
body { background: @background-color; }

Here’s an example in plunker

If it’s not showing up for whatever reason, then you probably have a compile error in your less, which will cause the entire sheet to not be delivered. You can check by copying and pasting your code into a online LESS compiler and seeing if it spits out any errors.

4 comments:

  1. I really appreciate the kind of topics you post here. Thanks for sharing a piece of great information that is actually helpful. I would love to share it with my friends and family using yo whatsapp
    , who are interested.

    ReplyDelete
  2. Encontrar contenido en tu propio idioma puede hacer que la experiencia de entretenimiento sea más cercana. Xuper TV Android presenta una propuesta de streaming que puede interesar a espectadores de habla hispana, especialmente a quienes buscan canales y programación latinoamericana. Los usuarios de Android pueden explorar las alternativas incluidas en el servicio y elegir según sus preferencias. La disponibilidad puede variar entre distintas ubicaciones.

    ReplyDelete
  3. ¡Muy útil este tutorial sobre usar Plunker con LESS, me ahorró mucho tiempo al probar estilos rápidamente! Cuando termino de programar, me gusta desconectar mirando partidos de fútbol en vivo online con pelota libre vip fútbol en directo en la pantalla. Gracias por compartir estos trucos de código.

    ReplyDelete