grunt-bower-requirejs icon indicating copy to clipboard operation
grunt-bower-requirejs copied to clipboard

Config file not created

Open pcfreak30 opened this issue 10 years ago • 2 comments
trafficstars

Using the following code a config file is not made, yet the cli version DOES write it.

grunt.config.set('bowerRequirejs',{
    dist: {
      target: {
        rjsConfig: './assets/config/requirejs.js',
        options: {
          'exclude-dev': true
        }
      }
    },
    dev: {
      target: {
        rjsConfig: './assets/config/requirejs.js'
      }
    }
  });

pcfreak30 avatar Feb 28 '15 23:02 pcfreak30

Same thing happened to me. I deleted the existing file and ran the script again and it worked. It doesn't overwrite existing files. Added a task to delete the config file before compiling to make it work.

rakannimer avatar May 22 '15 05:05 rakannimer

You have every target wrapped in an extra target object.

grunt.config.set('bowerRequirejs', {
  dist: {
    rjsConfig: './assets/config/requirejs.js',
    options: {
      'exclude-dev': true
    }
  },
  dev: {
    rjsConfig: './assets/config/requirejs.js'
  }
});

simon-lifelike avatar Jun 17 '15 09:06 simon-lifelike