Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Config file not created #35

Open
pcfreak30 opened this issue Feb 28, 2015 · 2 comments
Open

Config file not created #35

pcfreak30 opened this issue Feb 28, 2015 · 2 comments

Comments

@pcfreak30
Copy link

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'
      }
    }
  });
@rakannimer
Copy link

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.

@simon-lifelike
Copy link

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'
  }
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants