Added robots.txt and moduleResolution config

This commit is contained in:
Dmitriy Shishkov 2021-06-16 20:48:50 +05:00
parent eba464be13
commit f9e0e77fc3
3 changed files with 8 additions and 2 deletions

2
public/robots.txt Normal file
View File

@ -0,0 +1,2 @@
User-agent: *
Allow: /

View File

@ -11,10 +11,13 @@ module.exports = {
public: "/", public: "/",
src: "/dist", src: "/dist",
}, },
routes: [{ match: "routes", src: ".*", dest: "/index.html" }],
optimize: { optimize: {
bundle: true, bundle: true,
}, },
routes: [
{ match: "routes", src: "robots.txt", dest: "/robots.txt" },
{ match: "routes", src: ".*", dest: "/index.html" },
],
devOptions: { devOptions: {
open: "none", open: "none",
}, },

View File

@ -7,6 +7,7 @@
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"jsx": "react-jsx", "jsx": "react-jsx",
"lib": ["DOM"], "lib": ["DOM"],
"module": "ES2020" "module": "ES2020",
"moduleResolution": "node"
} }
} }