Skip to content

Commit df76c28

Browse files
author
Ives van Hoorne
committed
Add robots.txt
1 parent daac1b5 commit df76c28

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

config/webpack.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,15 @@ const config = {
111111
name: 'favicon.ico?[hash:8]',
112112
},
113113
},
114+
// A special case for robots.txt to place it into build root directory.
115+
{
116+
test: /\/robots.txt$/,
117+
include: [paths.src],
118+
loader: 'file-loader',
119+
options: {
120+
name: 'favicon.ico?[hash:8]',
121+
},
122+
},
114123
// "url" loader works just like "file" loader but it also embeds
115124
// assets smaller than specified size as data URLs to avoid requests.
116125
{

src/app/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Allow: /

0 commit comments

Comments
 (0)