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

Upload HTML files last #55

Open
ccorcos opened this issue Nov 19, 2015 · 2 comments
Open

Upload HTML files last #55

ccorcos opened this issue Nov 19, 2015 · 2 comments

Comments

@ccorcos
Copy link
Contributor

ccorcos commented Nov 19, 2015

It would be awesome if the html files were uploaded last. Otherwise, theres a short amount of time when you can refresh the page and the html file will load without the necesary assets being available.

@jpillora
Copy link
Owner

You should be able to just change your file matcher and include HTML files
at the end
On Fri, 20 Nov 2015 at 8:58 AM Chet Corcos [email protected] wrote:

It would be awesome if the html files were uploaded last. Otherwise,
theres a short amount of time when you can refresh the page and the html
file will load without the necesary assets being available.


Reply to this email directly or view it on GitHub
#55.

@ccorcos
Copy link
Contributor Author

ccorcos commented Nov 20, 2015

  grunt.config.merge
    s3:
      html:
        files: [
          { src: 'index.html', dest: dest, cwd:'dist' },
        ]
      versioned_assets:
        files: [
          { src: '{images,scripts,styles,fonts}/*',  dest: dest, cwd: 'dist' },
          { src: '{images,scripts,styles,fonts}/**/*',  dest: dest, cwd: 'dist' },
          { src: '*.{xml,txt,ico}',             dest: dest, cwd: 'dist' }
        ]

Can you have ordered objects?

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

2 participants