0
livereload: {
files: ['*.html', '*.php', 'js/**/*.{js,json}', 'css/*.css', 'img/**/*.{png,jpg,jpeg,gif,webp,svg}'],
options: {
livereload: true
}
}
以上是我的部分代碼gruntfile.js,它適用於我的index.html,它與gruntfile.js位於同一級別。如果我有很多文件夾怎麼辦?如何避免聲明很多例子/ *。php?每次你需要聲明一些東西來使用grunt時,這很乏味。grunt livereload全球所有文件
嘗試'文件:['*/*']' – Tushar