bezoerb / grunt-php2html

Grunt plugin to compile php to html
MIT License
22 stars 4 forks source link

Windows 10 Linux Subsystem: Resulting HTML is empty #16

Open pixelkritzel opened 7 years ago

pixelkritzel commented 7 years ago

On my Windows 10 Linux Subsystem the resulting HTML ist empty.

php-cgi ist in path

which php-cgi
/usr/bin/php-cgi

The config

module.exports = {
    options: {
        processLinks: true,
        htmlhint: {
            'tagname-lowercase': true,
            'attr-lowercase': true,
            'attr-value-double-quotes': true,
            'attr-value-not-empty': false,
            'doctype-first': true,
            'tag-pair': true,
            'tag-self-close': true,
            'spec-char-escape': true,
            'id-unique': true,
            'src-not-empty': true,
            'alt-require': true
        }
    },

    dist: {
        files: [
            {
                expand: true,
                cwd: '',
                src: [
                    '*.php'
                ],
                dest: '',
                ext: '.html'
            }
        ]
    }
};

This process works on Mac, Git Bash for Windows, CMD and Ubuntu Desktop 16.04

I don't even know how to debug it. Maybe you have an idea.

bezoerb commented 7 years ago

have you tried the cli version of php2html (https://github.com/bezoerb/php2html)