Skip to content

Commit

Permalink
Add a task for opening the dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
zoeesilcock committed Aug 11, 2015
1 parent 3048b16 commit ed2d051
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ var webpackConfig = require('./webpack.config.js');

module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-webpack');
grunt.loadNpmTasks('grunt-open');

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
webpack: {
Expand Down Expand Up @@ -36,9 +38,15 @@ module.exports = function(grunt) {
debug: true
}
}
},
open: {
default: {
path: 'http://localhost:8080/',
app: 'Google Chrome'
}
}
});

grunt.registerTask('default', ['webpack-dev-server:start']);
grunt.registerTask('default', ['webpack-dev-server:start', 'open:dev']);
grunt.registerTask('build', ['webpack:build']);
};

0 comments on commit ed2d051

Please sign in to comment.