awo*_*e76 5 javascript connect watch gruntjs livereload
我正在尝试使用grunt connect和livereload来配置基本URL.一切都正常,但我的网址是这样的:
http://0.0.0.0:8000/index.html
我希望他们这样:
http://0.0.0.0:8000/**newbase**/index.html
我的咕噜声连接:
module.exports = {
server: {
options: {
hostname: '*',
port: 8000,
base: './_site'
}
}
}
Run Code Online (Sandbox Code Playgroud)
我的咕噜咕噜表:
module.exports = {
options: {
livereload: true,
},
build: {
files : [ '*.md', '_layouts/*.html', '_posts/*.markdown', 'css/*.css', 'css/libs/*.css', '_config.yml', 'index.html', '404.html' ],
tasks: ['shell:jekyllBuild'],
options: {
spawn: false,
}
}
}
Run Code Online (Sandbox Code Playgroud)
你可以看到我正在使用Jekyll.再次,connect,livereload和Jekyll构建都运行良好.只想使用不同的baseurl(像Jekyll配置允许,用例是在Github中构建项目站点).
谢谢!
| 归档时间: |
|
| 查看次数: |
417 次 |
| 最近记录: |