小编jac*_*sme的帖子

Grunt任务陷入无休止的循环中

致力于Gruntfile.js为即将开展的项目组建基地.从一台新电脑开始,所以一切都是新的.使用Homebrew安装Node和NPM,然后在全局和本地目录中安装Grunt.

这是我的package.json:

{
  "name": "timespent-prototype",
  "version": "0.1.0",
  "devDependencies": {
    "assemble": "0.4.37",
    "bower": "^1.4.1",
    "grunt": "^0.4.5",
    "grunt-contrib-concat": "^0.5.1",
    "grunt-contrib-sass": "^0.9.2",
    "grunt-contrib-watch": "^0.6.1",
    "grunt-newer": "^1.1.0",
    "grunt-wiredep": "^2.0.0"
  }
}
Run Code Online (Sandbox Code Playgroud)

这是我的Gruntfile.js:

module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),

    concat: {
      vendor: {
       src: ['vendor/**/*.min.js'],
       dest: 'build/javascripts/library.js',
      }
    },

    // Takes your scss files and compiles them to css
    sass: {
      dist: {
        options: {
          style: 'expanded'
        },
        files: {
          'build/stylesheets/application.css': 'app/stylesheets/application/index.scss'
        }
      }
    }, …
Run Code Online (Sandbox Code Playgroud)

javascript node.js npm gruntjs grunt-contrib-concat

6
推荐指数
1
解决办法
2733
查看次数

标签 统计

grunt-contrib-concat ×1

gruntjs ×1

javascript ×1

node.js ×1

npm ×1