grunt-connect: serve files with base url added

自古美人都是妖i 提交于 2019-12-03 12:17:31

If you use Grunt Jekyll to run the Jekyll build commands it has a raw option that lets you append things to your _config.yml. That way you can effectively remove {{ site.baseurl }} for local development

jekyll: {
    development: {
        options: {
            config: '_config.yml',
            raw: 'baseurl: '
        }
    },
    production: {
        options: {
            config: '_config.yml'
        }
    }
},
bpaul

I answered a similar question at: https://stackoverflow.com/a/20864020/79790

Basically, you can set open in your livereload options to be the base URL for the server you want.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!