robots.txt

This commit is contained in:
cupcakearmy 2019-08-30 20:21:32 +02:00
parent db3ce2e53a
commit 1edb23826f
3 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,7 @@
"@types/react-dom": "^16.8",
"@types/react-router-dom": "^4.3.1",
"awesome-typescript-loader": "^5",
"copy-webpack-plugin": "^5.0.4",
"css-loader": "3",
"file-loader": "4",
"html-webpack-plugin": "3",

2
src/Static/robots.txt Normal file
View File

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

View File

@ -2,6 +2,7 @@ const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const CopyPlugin = require('copy-webpack-plugin')
module.exports = {
entry: [
@ -27,6 +28,9 @@ module.exports = {
new MiniCssExtractPlugin({
filename: 'bundle.css',
}),
new CopyPlugin([
{ from: 'Static/robots.txt', to: '.' },
]),
],
stats: {
assets: true,