dciccale / grunt-processhtml

Process html files at build time to modify them depending on the release environment
MIT License
407 stars 30 forks source link

is it possible to not specify files? #95

Closed vlrprbttst closed 8 years ago

vlrprbttst commented 8 years ago

is it possible to not specify files i want to process? i want all my html files to be processed as they all have includes but this configuration doesn't work:

        processhtml: {
            dev: {
                files: {
                    '_dev/*.html': ['_src/*.html']
                }
            }
        },

is there a way to tell it that, if i change index in _src, process that and produce the final file with the same filename in _dev?

thanks! this is a great grunt module!

dciccale commented 8 years ago

did you solved your issue?

that's grunt configuration. read the following issues all touching the same topic

29

33

45

47

vlrprbttst commented 8 years ago

yes thanks, i wanted to delete the issue (which is not an issue of the module) but couldn't :) thanks!

surjithctly commented 7 years ago

@dciccale Please add a sample in the Readme. Even I was about to open a new issue just because it's not outlined in the documentation.

processhtml: {
            dist: {
                files: [{
                    expand: true, // Enable dynamic expansion.
                    cwd: './', // Src matches are relative to this path.
                    src: ['*.html', 'views/**/*.html'], // Actual pattern(s) to match.
                    dest: 'dist/', // Destination path prefix.
                }],
            }
        },