Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge nested default options #37

Open
maxklenk opened this issue Oct 4, 2015 · 0 comments
Open

merge nested default options #37

maxklenk opened this issue Oct 4, 2015 · 0 comments

Comments

@maxklenk
Copy link
Member

maxklenk commented Oct 4, 2015

In this sample scripts.ngConstant.name will not be merged because there is no deep merge for nested objects.

//// task [`scripts`] collects scripts, runs several transformations and concatenates everything
scripts: {
  //  src: ['app/components/**/*.js', '!app/components/**/*.spec.js'], // glob that points to all scripts (except tests)
  //  dest: 'dist/js/', // destination of the concat file `scripts.js` (and associated sourcemaps file)
  //  ng2html: { // adds ng2html and saves all html partials right into the AngularJS $templateCache
  //    src: 'app/components/**/*.html', // glob that points to all partials
  //    prefix: 'components/', // prefix of the URL path
  //    name: 'app.templates' // the module name that contains the partials
  //  },
    ngConstant: { // adds ngConstant to dynamically add variables to your AngularJS app
      constants: env.constants, // the object that contains the variables
  //    name: 'app.config' // the module name that contains the variables
    }
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant