[英]grunt livereload globally for all files
livereload: {
files: ['*.html', '*.php', 'js/**/*.{js,json}', 'css/*.css', 'img/**/*.{png,jpg,jpeg,gif,webp,svg}'],
options: {
livereload: true
}
}
above is my partial code of gruntfile.js, it work for my index.html which located in the same level with the gruntfile.js. 上面是我的gruntfile.js的部分代码,它适用于与gruntfile.js处于同一级别的index.html。 What if I have many folders? 如果我有很多文件夹怎么办? How to avoid declare many example/*.php ? 如何避免声明很多example / *。php? It's tedious every time u need to declare something just to use grunt. 每当您需要声明某些内容以使用grunt时,这都是很乏味的。
livereload: {
files: ['**/*'],
options: {
livereload: true
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.