How to view html in another folder with show.js local server

I am new to Reveal.js and Grunt as the doc says I typed

$ grunt serve

      

Then open http://localhost:8000

and see that index.html

. Then I created a subdirectory and added html to it. I expected to see new html from http://localhost:8000/subdir/new.html

, but couldn't. Internet search did not help.

I think this is a naive question for an experienced Reveal.js user. Thank!

+3


source to share


1 answer


Look at grunt.initConfig

found here

qunit is registered in a folder named test:



qunit: {
            files: [ 'test/*.html' ]
        },

      

so if you are going to change the name of the subdirectory you need to register it before starting the service.

+1


source







All Articles