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

Add support for dynamic files property #6

Open
xiaoxiachen opened this issue Nov 18, 2014 · 5 comments
Open

Add support for dynamic files property #6

xiaoxiachen opened this issue Nov 18, 2014 · 5 comments

Comments

@xiaoxiachen
Copy link

http://gruntjs.com/configuring-tasks#building-the-files-object-dynamically

Running "pleeease:other" (pleeease) task
[D] Task source: /node_modules/grunt-pleeease/tasks/pleeease.js
Verifying property pleeease.other exists in config...OK
Warning: Object true has no method 'indexOf' Use --force to continue.

while using

files: {
      expand: true,
      cwd: 'public/stylesheets/',
      src: ['*.css'],
      ext: '.max.css',
      dest: 'target/files/stylesheets/'
    }
@danielhusar
Copy link
Owner

Hi,

dynamic files are already supported like this:

files: {
  'tmp/': 'test/fixtures/*.css'
}

You want explicitly support for that conventions there ?

@paazmaya
Copy link

I was having the same issue some time ago.

The above described expand method is the one endorsed by Grunt, so it would make sense any plugins to support it.

@tariel
Copy link

tariel commented Nov 18, 2014

👍

@Datamance
Copy link

You can't use tools like dom_munger either - only the last ref will be pulled. This is super annoying because I have a lot of pure CSS deps for my project that must be post-processed to be included along with my compiled SCSS.

Please fix this so I can use '<%= dom_munger.data.appcss %>'!

@danielhusar
Copy link
Owner

Hey, sure, I can add this support during the christmas.

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

5 participants