Added robots.txt and moduleResolution config
This commit is contained in:
parent
eba464be13
commit
f9e0e77fc3
2
public/robots.txt
Normal file
2
public/robots.txt
Normal file
@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Allow: /
|
@ -11,10 +11,13 @@ module.exports = {
|
||||
public: "/",
|
||||
src: "/dist",
|
||||
},
|
||||
routes: [{ match: "routes", src: ".*", dest: "/index.html" }],
|
||||
optimize: {
|
||||
bundle: true,
|
||||
},
|
||||
routes: [
|
||||
{ match: "routes", src: "robots.txt", dest: "/robots.txt" },
|
||||
{ match: "routes", src: ".*", dest: "/index.html" },
|
||||
],
|
||||
devOptions: {
|
||||
open: "none",
|
||||
},
|
||||
|
@ -7,6 +7,7 @@
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"jsx": "react-jsx",
|
||||
"lib": ["DOM"],
|
||||
"module": "ES2020"
|
||||
"module": "ES2020",
|
||||
"moduleResolution": "node"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user