Я пытаюсь запустить сервер с грубой загрузкой и меньше. на grunt less
это скомпилировать мой меньший файл, но при изменении меньше файла все, что я получаюГрунтовые часы не работают Задачи
>> File "app\style\componenets\components.less" changed.
Я также попытался меньше: развитие, но до сих пор нет удачи. Btw Я получаю текущую загрузку на КАЖДОЙ файл, я меняю, хотя в задаче часов я сконфигурировал меньше мест.
Заранее благодарен!
'use strict';
// Gruntfile with the configuration of grunt-express and grunt-open. No livereload yet!
module.exports = function(grunt) {
// Load Grunt tasks declared in the package.json file
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
console.log(__dirname + '\\app\\');
// Configure Grunt
grunt.initConfig({
// grunt-express will serve the files from the folders listed in `bases`
// on specified `port` and `hostname`
express: {
all: {
options: {
bases: ['app'],
port: 8080,
hostname: "0.0.0.0",
livereload: true
}
}
},
less: {
development: {
options: {
compress: true,
yuicompress: true
},
files: {
// target.css file: source.less file
"app/main.css": "app/style/main.less"
}
}
},
// grunt-watch will monitor the projects files
watch: {
less: {
files: ['<%= express.all.options.base%>/style/*.less', '<%= express.all.options.base%>/style/componenets/*.less'],
tasks: ['less']
}
},
// grunt-open will open your browser at the project's URL
open: {
all: {
// Gets the port from the connect configuration
path: 'http://localhost:<%= express.all.options.port%>/#/'
}
}
});
// Creates the `server` task
grunt.registerTask('server', [
'express',
'open',
'watch'
])
// Creates the `less` task
grunt.registerTask('less', ['less']);
};
Убрана линия, все тот же proble m .. –
см. мое редактирование. убедитесь, что ваши дорожки и т. д. установлены правильно! – hereandnow78