grunt-pleeease icon indicating copy to clipboard operation
grunt-pleeease copied to clipboard

Add support for dynamic files property

Open xiaoxiachen opened this issue 10 years ago • 5 comments

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/'
    }

xiaoxiachen avatar Nov 18 '14 13:11 xiaoxiachen

Hi,

dynamic files are already supported like this:

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

You want explicitly support for that conventions there ?

danielhusar avatar Nov 18 '14 13:11 danielhusar

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.

paazmaya avatar Nov 18 '14 13:11 paazmaya

:+1:

tariel avatar Nov 18 '14 13:11 tariel

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 %>'!

Datamance avatar Dec 17 '14 22:12 Datamance

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

danielhusar avatar Dec 21 '14 16:12 danielhusar