问答详情
源自:5-1 Grunt的Task,Target和Options

window环境gruntfile.js不大一样

module.exports = function (grunt) {

  // Time how long tasks take. Can help when optimizing build times
  require('time-grunt')(grunt);

  // Automatically load required grunt tasks
  require('jit-grunt')(grunt, {
    useminPrepare: 'grunt-usemin'
  });

  // Configurable paths
  var config = {
    app: 'app',
    dist: 'dist'
  };

  // Define the configuration for all the tasks
  grunt.initConfig({

 .........

})



提问者:甄橚 2015-11-10 16:56

个回答

  • 赵成冬
    2016-10-31 23:06:04

    这和win环境没关系,是版本的问题,老师的版本老