Skip to content

Instantly share code, notes, and snippets.

@mraible
Created April 17, 2015 23:20
Show Gist options
  • Save mraible/2d4cca2e291f823b8a46 to your computer and use it in GitHub Desktop.
Save mraible/2d4cca2e291f823b8a46 to your computer and use it in GitHub Desktop.
Gruntfile.js
'use strict';
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
watch: {
web: {
files: ['build/asciidoc/html5/chapters/**/*.html']
}
},
browserSync: {
dev: {
bsFiles: {
src : [
'build/asciidoc/html5/**/*.html',
'build/asciidoc/html5/images/**/*.{png,jpg,jpeg,gif,webp,svg}'
]
}
},
options: {
watchTask: true,
server: {
baseDir: "./build/asciidoc/html5/"
}
}
}
});
grunt.registerTask('serve', [
'browserSync',
'watch'
]);
grunt.registerTask('default', [
'serve'
]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment