Closed LeleDev closed 9 years ago
What does your gruntfile look like?
module.exports = function(grunt) {
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
options: {
sourcemap: 'none'
},
src: {
files: [
{
expand: true,
cwd: '/app/scss/',
src: ['*.scss'],
dest: '/app/css/sass',
ext: '.css'
}
]
},
},
watch: {
sass: {
files: [
'app/scss/*.scss',
],
tasks: ['sass:src'],
},
},
connect: {
server: {
options: {
port: 8000,
open: true
}
}
}
});
// Load the plugin that provides tasks
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.registerTask('default', [
'connect:server',
'watch'
]);
};
Have you tried changing the port and seeing if it still happens?
Tried right now.. the issue doesn't occur changing the port!
How can I kill the server when the grunt task is interrupted using CTRL-C?
In start my connect task before a watch task. Then if I kill grunt using CTRL-C, the next time i start these task I get the following error:
Unless I manually kill the grunt process.
Thank you in advance