Coder Social home page Coder Social logo

Comments (6)

vladikoff avatar vladikoff commented on August 19, 2024

Hey, sorry for the slow response.
HTTPS Snippet injection should work as 0.7.0 with something as basic as this:

 livereload: {
        options: {
          livereload: true,
          base: 'test/fixtures/',
          port: 8006,
          protocol: 'https',
          keepalive: true
        },
      },

However the certificate is valid only for the default 0.0.0.0. I have added additional docs on how to create a custom local hostname certificate here: https://github.com/gruntjs/grunt-contrib-connect#support-for-https

image

The grunt-contrib-watch part of this feature is blocked by this bug:
gruntjs/grunt-contrib-watch#290

from grunt-contrib-connect.

eddiemonge avatar eddiemonge commented on August 19, 2024

This still seems to be a problem

from grunt-contrib-connect.

vladikoff avatar vladikoff commented on August 19, 2024

please provide more detail. do we need to update watch?

from grunt-contrib-connect.

eddiemonge avatar eddiemonge commented on August 19, 2024

https://local.vm:35729/livereload.js?snipver=1 returns a ssl error:

SSL connection error

Less
Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have.
Error code: ERR_SSL_PROTOCOL_ERROR

going to the non-https: http://local.vm:35729/livereload.js?snipver=1 returns the actual script

from grunt-contrib-connect.

eddiemonge avatar eddiemonge commented on August 19, 2024

ok its just a documentation issue. there should be a note here thats if you use this plugin in conjunction with grunt-contrib-watch, then you have to do the last example from https://github.com/gruntjs/grunt-contrib-watch#optionslivereload

or

livereload:
          key: '<%= connect.options.key %>'
          cert: '<%= connect.options.cert %>'

from grunt-contrib-connect.

vladikoff avatar vladikoff commented on August 19, 2024

Added under https://github.com/gruntjs/grunt-contrib-connect#support-for-https docs, thanks!

from grunt-contrib-connect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.