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: "/",
|
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",
|
||||||
},
|
},
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"lib": ["DOM"],
|
"lib": ["DOM"],
|
||||||
"module": "ES2020"
|
"module": "ES2020",
|
||||||
|
"moduleResolution": "node"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user