Skip to content

Commit

Permalink
Add robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
lamplightdev committed Jul 2, 2018
1 parent fdc080e commit 3af57f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/index.js
Expand Up @@ -184,12 +184,12 @@ exports.preload = functions.https.onRequest((req, res) => {
// cutting the mustard for native Web Component support
if (document.head.createShadowRoot || document.head.attachShadow) {
loadScript('/js/app-1530539372534.js');
loadScript('/js/app-1530558374563.js');
} else {
// use polyfill
loadScript('/libs/webcomponentsjs/webcomponents-loader.js');
window.addEventListener('WebComponentsReady', function () {
loadScript('/js/app-1530539372534.js');
loadScript('/js/app-1530558374563.js');
});
}
Expand Down
Empty file added public/robots.txt
Empty file.
3 changes: 3 additions & 0 deletions rollup.config.js
Expand Up @@ -28,6 +28,9 @@ const filesToCopy = [{
}, {
from: 'public/sw.js',
to: 'build/public/sw.js',
}, {
from: 'public/robots.txt',
to: 'build/public/robots.txt',
}, {
from: 'public/manifest.json',
to: 'build/public/manifest.json',
Expand Down

0 comments on commit 3af57f6

Please sign in to comment.