Не могу включить модули узлов для ворчания

У меня проблема с включением ресурсов модуля узла в мой Gruntfile.js.

так вот мой Gruntfile.js:

module.exports = function (grunt) {

// Project configuration.
grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    concat: {
        options: {
            separator: ';'
        },
        dist: {
            src: ['public/**/*.js'],
            dest: 'concat/<%= pkg.name %>.js'
        }
    },
    uglify: {
        options: {
            banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
        },
        build: {
            src: 'concat/<%= pkg.name %>.js',
            dest: 'build/<%= pkg.name %>.min.js'
        }
    },
    watch: {
        options: {
            livereload: true
        },
        scripts: {
            files: 'public/commons/js/*.js',
            tasks: ['concat', 'uglify']
        }
    },
    connect: {
        server: {
            options: {
                base: {
                    path: 'public/',
                    options: {
                        index: '../index.html'
                    }
                },
                port: 8002,
                livereload: true
            }
        }
    }
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-watch');

// Default task(s).
grunt.registerTask('default', ['concat', 'uglify', 'connect:server', 'watch']);

};

и это структура моего файла:

  • CONCAT
  • node_modules
  • общественности
    • Обще
      • CSS
      • шрифты
      • HTML
      • JS
  • Gruntfile.js
  • bower.json
  • index.html
  • package.json
  • server.js

Я получаю эту ошибку

Не удалось загрузить ресурс: сервер ответил со статусом 404 (не найдено)

поэтому, пожалуйста, помогите.. спасибо

0 ответов

Другие вопросы по тегам