We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daac1b5 commit df76c28Copy full SHA for df76c28
config/webpack.config.js
@@ -111,6 +111,15 @@ const config = {
111
name: 'favicon.ico?[hash:8]',
112
},
113
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
123
// "url" loader works just like "file" loader but it also embeds
124
// assets smaller than specified size as data URLs to avoid requests.
125
{
src/app/robots.txt
@@ -0,0 +1,2 @@
1
+User-agent: *
2
+Allow: /
0 commit comments