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

Перезапись HTML output файла #5

Closed
dakiesse opened this issue Oct 20, 2013 · 2 comments
Closed

Перезапись HTML output файла #5

dakiesse opened this issue Oct 20, 2013 · 2 comments

Comments

@dakiesse
Copy link

Если уже сформирован html файл (результат параметра options.html), то при следующем выполнение таски, файл не перезаписывается (например у options.HTMLPrefix поменяли значение).

@TheSeg
Copy link

TheSeg commented Nov 19, 2013

I'm having the same problem (used Google Translate).

When using options.HTML and options.HTMLPrefix, then change the HTMLPrefix, the HTML file is not modified at all.

Workarounds:

  • Manually removing all content of the file, the update will occur correctly.
  • Deleting the target file will rewrite the file correctly.

@gleero
Copy link
Owner

gleero commented Nov 21, 2013

Now the task on startup removes all possible icons tags.

...
favicons: {
    stage1: {
        options: {
            html: 'test/out/test.html',
            HTMLPrefix: "/images/set1/",
        },
        src: 'test/test.png',
        dest: 'test/out'
    },
    stage2: {
        options: {
            html: 'test/out/test.html',
            HTMLPrefix: "/images/set2/",
        },
        src: 'test/test.png',
        dest: 'test/out'
    }
}
...

grunt.registerTask('default', ['favicons:stage1', 'favicons:stage2']);

stage2 will remove from html all icons created in stage1. If I understand the problem.

@gleero gleero closed this as completed Nov 26, 2013
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

3 participants