From a071789e52633222f0387dc4d204b39dbeb3b008 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sat, 23 Dec 2017 02:00:52 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B3=D0=B5=D0=BD=D0=B5=D1=80=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D1=8F=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0=20sitemap=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D0=B5=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D0=B5=D0=BA=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + webpack.config.js | 12 ++++++++++++ yarn.lock | 4 ++++ 3 files changed, 17 insertions(+) diff --git a/package.json b/package.json index 0fe56d4..95ae608 100644 --- a/package.json +++ b/package.json @@ -106,6 +106,7 @@ "sass-loader": "^4.0.0", "scripts": "file:./scripts", "sinon": "^3.2.1", + "sitemap-webpack-plugin": "^0.5.1", "style-loader": "^0.18.0", "unexpected": "^10.33.2", "unexpected-sinon": "^10.5.1", diff --git a/webpack.config.js b/webpack.config.js index b0d61a2..b87242a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -10,6 +10,7 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const cssUrl = require('webpack-utils/cssUrl'); const cssImport = require('postcss-import'); +const SitemapPlugin = require('sitemap-webpack-plugin').default; const localeFlags = require('./src/components/i18n/localeFlags').default; const SUPPORTED_LANGUAGES = Object.keys(require('./src/i18n/index.json')); @@ -132,6 +133,17 @@ const webpackConfig = { collapseWhitespace: isProduction } }), + new SitemapPlugin('https://account.ely.by', [ + '/', + '/register', + '/resend-activation', + '/activation', + '/forgot-password', + '/rules', + ], { + lastMod: true, + changeFreq: 'weekly', + }), new webpack.ProvidePlugin({ React: 'react' }), diff --git a/yarn.lock b/yarn.lock index bd14905..7f0cde4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6174,6 +6174,10 @@ sinon@^3.2.1: text-encoding "0.6.4" type-detect "^4.0.0" +sitemap-webpack-plugin@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/sitemap-webpack-plugin/-/sitemap-webpack-plugin-0.5.1.tgz#b60749402eee37d43866940e3a66200b86e55099" + slash@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55"