При установке grunt-contrib-concat ошибки.
{
"name": "grunt",
"version": "1.6.1",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-compass": "^1.1.1",
"grunt-contrib-concat": "~2.1.0",
"grunt-contrib-uglify": "~5.2.2"
}
}
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
compass: {
dev: {
options: {
outputStyle:'compressed',
sassDir: 'sass',
cssDir: 'css',
// watch : true,
watch : false,
}
}
},
jshint: {
options: {
separator: ";",
curly: true,
eqnull: true,
eqeqeq: true,
undef: true,
globals: {
jQuery: true,
},
},
dist: {
src: ["src/**/*.js"],
dest: "dist/<%= pkg.name %>.js",
},
},
concat: {
options: {
separator: ';'
}
},
all: {
dest: 'js/app.js',
src: [
'js/libs/loadCss.js',
'js/libs/jquery.js',
'js/libs/magnific-popup.js',
'js/libs/async-gfont.js',
'js/libs/owl.js',
'js/doc-ready.js'
],
},
uglify: {
my_target: {
files: { 'js/app.min.js': ['js/app.js'] }
}
}
});
//Загрузка модулей
grunt.loadNpmTasks('grunt-contrib-compass');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask("default", ["jshint", "concat"]);
};