This commit is contained in:
Alexey Kasyanchuk 2017-01-15 18:16:55 +03:00
parent c90f5e6fb7
commit df12e2f109
2 changed files with 10 additions and 7 deletions

View File

@ -8,6 +8,7 @@ var url = require('url');
var paths = require('./paths'); var paths = require('./paths');
var getClientEnvironment = require('./env'); var getClientEnvironment = require('./env');
const RobotsPlugin = require('@tanepiper/robots-webpack-plugin');
function ensureSlash(path, needsSlash) { function ensureSlash(path, needsSlash) {
@ -234,7 +235,8 @@ module.exports = {
// having to parse `index.html`. // having to parse `index.html`.
new ManifestPlugin({ new ManifestPlugin({
fileName: 'asset-manifest.json' fileName: 'asset-manifest.json'
}) }),
new RobotsPlugin({sitemap: 'http://ratsontheboat.org/sitemap.xml'})
], ],
// Some libraries import Node modules but don't use them in the browser. // Some libraries import Node modules but don't use them in the browser.
// Tell Webpack to provide empty mocks for them so importing them works. // Tell Webpack to provide empty mocks for them so importing them works.

View File

@ -3,14 +3,10 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"babel-eslint": "7.1.1", "@tanepiper/robots-webpack-plugin": "^0.4.0",
"eslint": "3.8.1",
"eslint-plugin-flowtype": "2.21.0",
"eslint-plugin-import": "2.0.1",
"eslint-plugin-jsx-a11y": "2.2.3",
"eslint-plugin-react": "6.4.1",
"autoprefixer": "6.5.1", "autoprefixer": "6.5.1",
"babel-core": "6.17.0", "babel-core": "6.17.0",
"babel-eslint": "7.1.1",
"babel-jest": "17.0.2", "babel-jest": "17.0.2",
"babel-loader": "6.2.7", "babel-loader": "6.2.7",
"babel-preset-react-app": "^2.0.1", "babel-preset-react-app": "^2.0.1",
@ -21,8 +17,13 @@
"css-loader": "0.26.0", "css-loader": "0.26.0",
"detect-port": "1.0.1", "detect-port": "1.0.1",
"dotenv": "2.0.0", "dotenv": "2.0.0",
"eslint": "3.8.1",
"eslint-config-react-app": "^0.5.0", "eslint-config-react-app": "^0.5.0",
"eslint-loader": "1.6.0", "eslint-loader": "1.6.0",
"eslint-plugin-flowtype": "2.21.0",
"eslint-plugin-import": "2.0.1",
"eslint-plugin-jsx-a11y": "2.2.3",
"eslint-plugin-react": "6.4.1",
"extract-text-webpack-plugin": "1.0.1", "extract-text-webpack-plugin": "1.0.1",
"file-loader": "0.9.0", "file-loader": "0.9.0",
"filesize": "3.3.0", "filesize": "3.3.0",