{"id":299473,"date":"2020-02-29T15:00:10","date_gmt":"2020-02-29T15:00:10","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=299473"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=299473","title":{"rendered":"\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u044b\u0439 PWA \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d \u043d\u0430 Nuxt.js 2 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u0427\u0430\u0441\u0442\u044c 1"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/490496\/\">\n<p>\u0421\u0442\u0430\u0442\u044c\u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430 \u043d\u0430 \u043b\u044e\u0434\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0436\u0435 \u0438\u043c\u0435\u044e\u0442 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u044b Vue, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u0441\u043d\u043e\u0432\u0430\u043d Nuxt, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0431\u0443\u0434\u0443 \u0437\u0430\u043e\u0441\u0442\u0440\u044f\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u043b\u044f Nuxt \u0432\u0435\u0449\u0430\u0445. \u041d\u043e \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u0441 \u043d\u0438\u043c\u0438, \u0442\u043e \u0441\u0442\u0430\u0442\u044c\u044f \u0434\u0430\u0441\u0442 \u043e\u0431\u0449\u0435\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 PWA Nuxt.<\/p>\n<p>  <\/p>\n<p>\u0412\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0447\u0435\u0440\u043f\u043d\u0443\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0445\u0430\u043a\u0438, \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0447\u0430\u0441\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 Nuxt \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.<\/p>\n<p>  <\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u041a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/li>\n<li>\u041a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043b\u044e\u0431\u0438\u0442 Google (\u0438\u043b\u0438 \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a) \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f SEO.<a name=\"habracut\"><\/a><\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0432\u043e\u0441\u043f\u0440\u0438\u044f\u0442\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 backend api, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u0430 \u0442\u0435\u043c\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043e\u0431\u044a\u0451\u043c\u043d\u0430\u044f \u0438 \u0442\u044f\u043d\u0435\u0442 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e.<\/p>\n<p>  <\/p>\n<h2 id=\"vvedenie\">\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u044b\u0445 (PWA) \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 \u0432\u0440\u043e\u0434\u0435 Nuxt.js \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e: <\/p>\n<p>  <\/p>\n<ul>\n<li>\u0412\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0431\u043e\u0442\u0438\u0442\u044c\u0441\u044f \u043e\u0431 \u043e\u0442\u0434\u0430\u0447\u0435 html \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u0435\u0440\u0435\u043d\u0434\u0435\u0440\u0430 \u043a\u0430\u043a \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 SPA \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0445 \u0440\u043e\u0431\u043e\u0442\u043e\u0432.<\/li>\n<li>\u0411\u043e\u043b\u0435\u0435 \u0431\u044b\u0441\u0442\u0440\u043e\u0435 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u0441\u0430\u0439\u0442\u043e\u043c, \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0441\u0430\u0439\u0442\u0430\u043c\u0438, \u0437\u0430 \u0441\u0447\u0435\u0442 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u043a\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 js chunks, css styles \u0438 api \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 (\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u0435\u0442 webpack 4, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c nuxt.js)<\/li>\n<li>\u0412\u044b\u0441\u043e\u043a\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 Google Lighthouse \u043f\u0440\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0438\u0434\u0442\u0438 \u0440\u0435\u0447\u044c \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 (\u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0431\u0440\u0430\u0442\u044c 100\/100 \u0434\u0430\u0436\u0435 \u043d\u0430 \u0441\u043b\u0430\u0431\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435).<\/li>\n<li>CSS Modules, Babel \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438<\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"struktura-internet-magazina\">\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430:<\/h3>\n<p>  <\/p>\n<ul>\n<li>\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0441 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u043c \u0442\u043e\u0432\u0430\u0440\u043e\u0432<\/li>\n<li>\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439 \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0442\u043e\u0432\u0430\u0440\u043e\u0432<\/li>\n<li>\u041a\u0430\u0440\u0442\u043e\u0447\u043a\u0430 \u0442\u043e\u0432\u0430\u0440\u0430<\/li>\n<li>\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043a\u0430\u0437\u0430<\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"vozmozhnosti-prilozheniya\">\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f:<\/h3>\n<p>  <\/p>\n<ul>\n<li>\u041c\u043e\u0434\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u043a\u043d\u0430 (\u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u043a\u0443\u043f\u0438\u0442\u044c).<\/li>\n<li>\u0425\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 cookie (\u0431\u0435\u0437 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f).<\/li>\n<li>\u041b\u0435\u043d\u0438\u0432\u0430\u044f \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u043a\u0430 \u0438 \u0433\u0438\u0434\u0440\u0430\u0446\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432.<\/li>\n<li>\u0421\u0436\u0430\u0442\u0438\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439, \u0441\u0442\u0438\u043b\u0435\u0439, \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, html \u043a\u043e\u0434\u0430 \u0438 \u0432\u0441\u0435\u0433\u043e \u0447\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u0436\u043d\u043e.<\/li>\n<li>2 \u0432\u0435\u0440\u0441\u0438\u0438 \u0441\u0430\u0439\u0442\u0430: 1) \u0434\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0442\u0440\u0430\u043d\u0441\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 (\u0447\u0435\u0440\u0435\u0437 Babel) 2) Legacy \u0432\u0435\u0440\u0441\u0438\u044f \u0442\u0440\u0430\u043d\u0441\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0447\u0435\u0440\u0435\u0437 Babel. <\/li>\n<li>\u0423\u043c\u043d\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0448\u0440\u0438\u0444\u0442\u043e\u0432 \u0431\u0435\u0437 FOUT, FOIT, FOFT (\u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0432\u043e\u0438\u0445 \u0448\u0440\u0438\u0444\u0442\u043e\u0432, \u043f\u043e\u043a\u0430 \u043e\u043d\u0438 \u043d\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u044f\u0442\u0441\u044f \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043e\u043d \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0435\u0442\u044c \u0442\u0435\u043a\u0441\u0442).<\/li>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0432\u0441\u0435\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432 \u043e\u0442 IE 10.<\/li>\n<li>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 svg.<\/li>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 SEO \u0442\u0435\u0433\u0430\u043c\u0438.<\/li>\n<li>\u0410\u0432\u0442\u043e\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0435\u0449\u0451 \u0434\u043e \u0440\u0435\u043d\u0434\u0435\u0440\u0430 \u0441\u0430\u0439\u0442\u0430, \u0434\u043b\u044f \u043e\u0442\u0434\u0430\u0447\u0438 \u043d\u0443\u0436\u043d\u043e\u0433\u043e html \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430.<\/li>\n<li>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 API \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e XHR \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432.<\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"ustanovka-nuxt\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Nuxt<\/h2>\n<p>  <\/p>\n<p>\u0418 \u0442\u0430\u043a \u043d\u0430\u0447\u043d\u0435\u043c. \u042f \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong>Node v12.16.1 \u0438 Yarn v1.22.0<\/strong>.<br \/>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0435\u0451 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c package.json \u0442\u0430\u043a\u043e\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 <code>yarn install<\/code><\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">package.json<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">{   &quot;name&quot;: &quot;habr&quot;,   &quot;version&quot;: &quot;1.0.0&quot;,   &quot;private&quot;: true,   &quot;scripts&quot;: {     &quot;analyze&quot;: &quot;cross-env NODE_ENV=production  nuxt build --analyze&quot;,     &quot;build&quot;: &quot;cross-env NODE_ENV=production nuxt build&quot;,     &quot;buildandstart&quot;: &quot;cross-env NODE_ENV=production nuxt build &amp;&amp; cross-env NODE_ENV=production nuxt start&quot;,     &quot;dev&quot;: &quot;cross-env NODE_ENV=development NUXT_PORT=3000 nuxt&quot;,     &quot;start&quot;: &quot;cross-env NODE_ENV=production nuxt start&quot;   },   &quot;dependencies&quot;: {     &quot;@nuxtjs\/axios&quot;: &quot;5.9.5&quot;,     &quot;@nuxtjs\/style-resources&quot;: &quot;1.0.0&quot;,     &quot;@nuxtjs\/svg&quot;: &quot;0.1.6&quot;,     &quot;cookie-universal-nuxt&quot;: &quot;2.1.1&quot;,     &quot;cross-env&quot;: &quot;7.0.0&quot;,     &quot;cssnano&quot;: &quot;4.1.10&quot;,     &quot;cssnano-preset-advanced&quot;: &quot;4.0.7&quot;,     &quot;imagemin-mozjpeg&quot;: &quot;^8.0.0&quot;,     &quot;imagemin-webpack-plugin&quot;: &quot;^2.4.2&quot;,     &quot;intersection-observer&quot;: &quot;^0.7.0&quot;,     &quot;node-sass&quot;: &quot;^4.13.1&quot;,     &quot;normalize.css&quot;: &quot;8.0.1&quot;,     &quot;nuxt&quot;: &quot;2.11.0&quot;,     &quot;nuxt-trailingslash-module&quot;: &quot;1.1.0&quot;,     &quot;nuxt-webfontloader&quot;: &quot;^1.1.0&quot;,     &quot;sass-loader&quot;: &quot;^8.0.2&quot;,     &quot;vue-js-modal&quot;: &quot;1.3.31&quot;,     &quot;vue-lazy-hydration&quot;: &quot;^1.0.0-beta.12&quot;,     &quot;vue-lazyload&quot;: &quot;1.3.3&quot;,     &quot;vue-svg-loader&quot;: &quot;0.11.0&quot;,     &quot;vuelidate&quot;: &quot;^0.7.5&quot;   },   &quot;devDependencies&quot;: {     &quot;@nuxtjs\/eslint-config&quot;: &quot;2.0.0&quot;,     &quot;babel-eslint&quot;: &quot;8&quot;,     &quot;eslint&quot;: &quot;^6.8.0&quot;,     &quot;eslint-config-prettier&quot;: &quot;6.10.0&quot;,     &quot;eslint-config-standard&quot;: &quot;14.1.0&quot;,     &quot;eslint-friendly-formatter&quot;: &quot;4.0.1&quot;,     &quot;eslint-loader&quot;: &quot;3.0.3&quot;,     &quot;eslint-plugin-array-func&quot;: &quot;3.1.3&quot;,     &quot;eslint-plugin-import&quot;: &quot;2.20.1&quot;,     &quot;eslint-plugin-jest&quot;: &quot;23.7.0&quot;,     &quot;eslint-plugin-lodash&quot;: &quot;6.0.0&quot;,     &quot;eslint-plugin-no-loops&quot;: &quot;0.3.0&quot;,     &quot;eslint-plugin-no-use-extend-native&quot;: &quot;0.4.1&quot;,     &quot;eslint-plugin-node&quot;: &quot;11.0.0&quot;,     &quot;eslint-plugin-prettier&quot;: &quot;3.1.2&quot;,     &quot;eslint-plugin-promise&quot;: &quot;4.2.1&quot;,     &quot;eslint-plugin-security&quot;: &quot;1.4.0&quot;,     &quot;eslint-plugin-standard&quot;: &quot;4.0.1&quot;,     &quot;eslint-plugin-vue&quot;: &quot;6.1.2&quot;,     &quot;prettier&quot;: &quot;1.19.1&quot;,     &quot;prettier-eslint&quot;: &quot;9.0.1&quot;   } } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p><em>devDependencies<\/em> \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b, \u043d\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u044b \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0438 \u043b\u0438\u043d\u0442\u0438\u043d\u0433\u0430.<\/p>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u043e \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u0430\u043a\u0435\u0442\u0435:<\/p>\n<p>  <\/p>\n<ul>\n<li><strong>@nuxtjs\/axios<\/strong> \u0423\u0434\u043e\u0431\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 XHR \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438.<\/li>\n<li><strong>@nuxtjs\/style-resources<\/strong> \u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b \u0441 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u0434\u043b\u044f sass, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0441\u0431\u043e\u0440\u043a\u0435 \u0432 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442.<\/li>\n<li><strong>cookie-universal-nux<\/strong>t \u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u0435 api \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 cookie \u043a\u0430\u043a \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0442\u0430\u043a \u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0435<\/li>\n<li><strong>cross-env<\/strong> \u0410\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0435\u0441\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0438\u0437 \u043f\u043e\u0434 Windows, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f (\u043c\u043e\u0436\u043d\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c dotenv)<\/li>\n<li><strong>cssnano <\/strong> \u0425\u043e\u0440\u043e\u0448\u0438\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f \u0441\u0436\u0430\u0442\u0438\u044f css, \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u043e\u0432 \u0438 \u0442\u0434.<\/li>\n<li><strong>image-webpack-loader<\/strong> \u041f\u0435\u0440\u0435\u0436\u0438\u043c\u0430\u0435\u043c JPG, GIF, WEBP, PNG \u0441 \u043f\u043e\u0442\u0435\u0440\u0435\u0439 \u0438\u043b\u0438 \u0431\u0435\u0437 \u043f\u043e\u0442\u0435\u0440\u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430.<\/li>\n<li><strong>intersection-observer<\/strong> \u041f\u043e\u043b\u0438\u0444\u0438\u043b \u0434\u043b\u044f Intersection Observer API (\u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u043b\u0435\u043d\u0438\u0432\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432).<\/li>\n<li><strong>node-sass<\/strong> Webpack \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u0434\u043b\u044f scss.<\/li>\n<li><strong>normalize.css<\/strong> \u0421\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0435 \u0441\u0442\u0438\u043b\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432.<\/li>\n<li><strong>nuxt-trailingslash-module<\/strong> \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u043b\u0438\u0448\u043d\u0438\u0435 \u0441\u043b\u044d\u0448\u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 (\u0434\u043b\u044f SEO).<\/li>\n<li><strong>nuxt-webfontloader<\/strong> \u0423\u043c\u043d\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0448\u0440\u0438\u0444\u0442\u043e\u0432.<\/li>\n<li><strong>vue-js-modal<\/strong> \u041c\u043e\u0434\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u043a\u043d\u0430.<\/li>\n<li><strong>vue-lazy-hydration<\/strong> \u0423\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u043c Max Potential First Input Delay (\u043e\u0447\u0435\u043d\u044c \u0443\u0437\u043a\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u043b\u044e\u0431\u044b\u043c\u0438 SSR \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430\u043c\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f html \u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432, \u043e\u043d\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0433\u0438\u0434\u0440\u0430\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435).<\/li>\n<li><strong>vue-lazyload<\/strong> \u041b\u0435\u043d\u0438\u0432\u0430\u044f \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u043a\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a.<\/li>\n<li><strong>vue-svg-loader<\/strong> SVG \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a.<\/li>\n<li><strong>vuelidate<\/strong> \u0423\u0434\u043e\u0431\u043d\u0430\u044f \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u0444\u043e\u0440\u043c.<\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"struktura-proekta\">\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/h2>\n<p>  <\/p>\n<pre><code class=\"plaintext\">--assets    --scss   --img   --svg --components --pages   --category   --checkout   --product --layouts --plugins  --store  --middleware (\u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430\u0445 \u043c\u0435\u0436\u0434\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u043c\u0438) --serverMiddleware (\u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e server only)<\/code><\/pre>\n<p>  <\/p>\n<ul>\n<li><strong>assets<\/strong> \u0417\u0434\u0435\u0441\u044c \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432\u0441\u0435 \u0430\u0441\u0441\u0435\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043f\u043e\u0437\u0436\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e. <\/li>\n<li><strong>components<\/strong> \u0412\u0440\u0443\u0447\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0435\u043c \u0443\u0434\u043e\u0431\u043d\u0443\u044e \u0434\u043b\u044f \u043d\u0430\u0441 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043f\u0430\u043f\u043e\u043a \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438 Vue<\/li>\n<li><strong>pages<\/strong> \u041f\u0430\u043f\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439, \u043c\u044b \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0448\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u044b \u043a\u0430\u043a \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u0432 Vue Router. \u041f\u043e\u0437\u0436\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u044d\u0442\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435.<\/li>\n<li><strong>layouts<\/strong> \u041f\u0430\u043f\u043a\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439, \u043c\u044b \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u043e\u0431\u0432\u0451\u0440\u0442\u043a\u0438 \u0432\u043e\u043a\u0440\u0443\u0433 \u0441\u0442\u0440\u0430\u043d\u0438\u0446, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445, \u043c\u044b \u0437\u0430\u0434\u0430\u0451\u043c \u043e\u0431\u0449\u0438\u0435 \u0434\u043b\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b (\u0432\u0440\u043e\u0434\u0435 \u0448\u0430\u043f\u043a\u0438 \u0438 \u0444\u0443\u0442\u0435\u0440\u0430).<\/li>\n<li><strong>plugins<\/strong> \u0412 \u044d\u0442\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0440\u0430\u0437\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u0439. \u041e\u0431 \u044d\u0442\u043e\u043c \u043f\u043e\u0437\u0436\u0435.<\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"sozdayom-layout\">\u0421\u043e\u0437\u0434\u0430\u0451\u043c layout<\/h3>\n<p>  <\/p>\n<p>\u041c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u0434\u0430\u0442\u044c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438 layout, \u0447\u0442\u043e\u0431\u044b \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0442\u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c \u043a\u043e\u0440\u0435\u043d\u044c \u0441\u0430\u0439\u0442\u0430.<\/p>\n<p>  <\/p>\n<p>\u0412 layouts \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0435\u0441\u043b\u0438 \u044f\u0432\u043d\u043e \u043d\u0435 \u0437\u0430\u0434\u0430\u043d \u0434\u0440\u0443\u0433\u043e\u0439. <\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">default.vue<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"html\">&lt;template&gt;     &lt;nuxt\/&gt; &lt;\/template&gt;  &lt;script&gt; export default {   computed: {     meta () {       return [         { charset: 'utf-8' },         {           name: 'viewport',           content: 'width=device-width, initial-scale=1, maximum-scale=1 shrink-to-fit=no'         },         { hid: 'description', name: 'description', content: '\u0413\u043b\u0430\u0432\u043d\u0430\u044f' }       ]     }   },    head () {     const canonical = `https:\/\/mysite.com${this.$route.path       .toLowerCase()       .replace(\/\\\/$\/, '')}`     return {       meta: [         ...this.meta        ],       script: [         \/\/ { src: 'https:\/\/markknol.github.io\/console-log-viewer\/console-log-viewer.js' }       ],       link: [{ rel: 'canonical', href: canonical }]     }   } } &lt;\/script&gt;<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u041f\u043e\u043a\u0430 \u0447\u0442\u043e \u0432 \u0442\u0435\u0433\u0435 template \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u0441\u043b\u043e\u0442 \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 Nuxt \u0431\u0443\u0434\u0435\u0442 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441 layout \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u041f\u043e\u0437\u0436\u0435 \u043c\u044b \u0432\u0435\u0440\u043d\u0451\u043c\u0441\u044f \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0442\u0443\u0434\u0430 \u0448\u0430\u043f\u043a\u0443 \u0438 \u0444\u0443\u0442\u0435\u0440.<\/p>\n<p>  <\/p>\n<p>\u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u043e computed \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <strong>meta()<\/strong>, \u043c\u044b \u0435\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043d\u0430 \u0431\u0443\u0434\u0443\u0449\u0435\u0435 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u0435\u0442\u0430-\u0442\u0435\u0433\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0443\u0441\u043b\u043e\u0432\u0438\u0439.<br \/>  \u0412 \u044d\u0442\u043e\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u0432 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 Vuex \u0438 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u0437\u044f\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u0435 \u0438 \u0435\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u044d\u0442\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0437\u0430\u0434\u0430\u0442\u044c \u043c\u0435\u0442\u0430\u0442\u0435\u0433\u0438 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446. <\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <strong>head()<\/strong>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 Nuxt \u0443 \u0432\u0441\u0435\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432. \u0412 \u043d\u0435\u0433\u043e \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u043c\u0435\u0442\u0430\u0442\u0435\u0433\u0438, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0437\u0430\u0434\u0430\u0451\u043c \u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u0441\u044b\u043b\u043a\u0438 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u0430.<\/p>\n<p>  <\/p>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u043c\u0443\u0434\u0440\u0438\u0442\u044c, \u0438 \u0432\u0435\u0440\u043d\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442. \u041a\u043e\u0442\u043e\u0440\u044b\u0439 Nuxt \u043e\u0442\u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442 \u0432 \u044d\u0442\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;meta data-n-head=&quot;ssr&quot; charset=&quot;utf-8&quot;&gt; &lt;meta data-n-head=&quot;ssr&quot; name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, maximum-scale=1 shrink-to-fit=no&quot;&gt; &lt;meta data-n-head=&quot;ssr&quot; data-hid=&quot;description&quot; name=&quot;description&quot; content=&quot;\u0413\u043b\u0430\u0432\u043d\u0430\u044f&quot;&gt; &lt;link data-n-head=&quot;ssr&quot; rel=&quot;canonical&quot; href=&quot;https:\/\/mysite.com&quot;&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0413\u0434\u0435:<\/p>\n<p>  <\/p>\n<ul>\n<li>\n<p><strong>data-n-head=&quot;ssr&quot;<\/strong> \u0421\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0439 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.<\/p>\n<p>  <\/li>\n<li>\n<p><strong>data-hid=&quot;description&quot;<\/strong> \u0420\u0430\u043d\u0435\u0435, \u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u0435, \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <strong>hid: &#8216;description&#8217;<\/strong>. \u041e\u043d\u043e \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c, \u043d\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 Nuxt \u043f\u0440\u0438\u0441\u0432\u043e\u0438\u0442\u044c \u044d\u0442\u043e\u043c\u0443 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u0442\u0435\u0433\u0443 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 <strong>id<\/strong>, \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0437\u0436\u0435 \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u0445 \u044d\u0442\u043e\u0442 \u0442\u0435\u0433 \u043c\u0435\u043d\u044f\u0442\u044c, \u043e\u0431\u0440\u0430\u0449\u0430\u044f\u0441\u044c \u043a \u043d\u0435\u043c\u0443 \u043f\u043e <strong>id<\/strong>. \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0442\u0430\u043a \u043a\u0430\u043a description \u0432 layout \u0437\u0430\u0434\u0430\u043d \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430 \u0438 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0441\u0432\u043e\u0438\u043c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c (\u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f SEO).<\/p>\n<p>  <\/li>\n<li>\n<p><strong> link: [{ rel: &#8216;canonical&#8217;, href: canonical }]<\/strong> \u041e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u0441\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0432 Nuxt \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u0438 &quot;\u0441\u043b\u0435\u0448\u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435&quot;, \u0430 \u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0435 \u043d\u0430\u043c \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u044b \u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u0435 \u043f\u043e\u0438\u0441\u043a\u0430.<br \/>  \u042d\u0442\u0438\u043c \u0442\u0435\u0433\u043e\u043c \u043c\u044b \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u0434\u0430\u0451\u043c \u0442\u0435\u0433 canonical \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0445 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d. \u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438 \u044d\u0442\u043e \u043d\u0435 \u0443\u0431\u0435\u0440\u0451\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u043c \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443.<br \/>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>site.com\/product\/myProduct, site.com\/product\/myProduct\/, site.com\/product\/MyProduct\/<\/code> \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u043d\u044b\u043c \u0430\u0434\u0440\u0435\u0441\u0430\u043c\u0438 \u043e\u0434\u043d\u043e\u0439 \u0438 \u0442\u043e\u0439 \u0436\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043d\u043e \u0443 \u0432\u0441\u0435\u0445 \u0438\u0445 \u0431\u0443\u0434\u0435\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 canonical, \u0447\u0442\u043e \u0443\u0431\u0435\u0440\u0451\u0442 \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u044b \u0438\u0437 \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a\u0430.<\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;link data-n-head=&quot;ssr&quot; rel=&quot;canonical&quot; href=&quot;https:\/\/site.com\/product\/myproduct&quot;&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b, \u043d\u043e \u043f\u043e\u043a\u0430 \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u044d\u0442\u043e \u0442\u0430\u043a \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  <\/li>\n<li>\n<p>\u0422\u0430\u043a \u0436\u0435 \u0432\u044b \u043c\u043e\u0433\u043b\u0438 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u0435\u0433 \u0432 script. \u042d\u0442\u0443 \u0432\u0435\u0449\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u0435\u043b\u043e \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0434\u0435\u0431\u0430\u0433\u0430. \u0417\u0430\u0448\u043b\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442 \u0441 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0442\u043a\u0440\u044b\u043b\u0430\u0441\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u043d\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435. \u041e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u043f\u0440\u0438\u0431\u0435\u0433\u0430\u0442\u044c \u043a \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0438 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u0432\u0440\u0435\u043c\u044f.<\/p>\n<p>  <\/li>\n<\/ul>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u043e \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u0433\u0438<\/b><\/p>\n<div class=\"spoiler_text\">\n<ul>\n<li><strong>name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1, maximum-scale=1 shrink-to-fit=no&quot;<\/strong> \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u043c \u0437\u0443\u043c \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 (\u043a\u0440\u043e\u043c\u0435 Safary iOS).<\/li>\n<li><strong>charset=&quot;utf-8&quot;<\/strong> \u0437\u0430\u0434\u0430\u0451\u043c \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b <\/li>\n<\/ul>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h3 id=\"sozdayom-stranicu\">\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443<\/h3>\n<p>  <\/p>\n<p>\u041c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0448\u0430\u0431\u043b\u043e\u043d, \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0438 \u043a\u043e\u0440\u043d\u0435\u0432\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443. \u0412 \u043f\u0430\u043f\u043a\u0435 pages \u0441\u043e\u0437\u0434\u0430\u0451\u043c index.vue<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">index.vue<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;template&gt;     &lt;div&gt; &lt;h1&gt;\u041f\u0440\u0438\u0432\u0435\u0442 \u0425\u0430\u0431\u0440!&lt;\/h1&gt;     &lt;\/div&gt; &lt;\/template&gt;  &lt;script&gt;     export default {      } &lt;\/script&gt;<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u043e\u0441\u043e\u0431\u043e \u043d\u0435\u0447\u0435\u0433\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 Vue \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c\u0441\u044f \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0438 \u043a\u043e\u0440\u043d\u044f \u0441\u0430\u0439\u0442\u0430. \u041f\u043e\u0437\u0436\u0435 \u043c\u044b \u0435\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043c.<\/p>\n<p>  <\/p>\n<h2 id=\"konfiguraciya-nuxt\">\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f Nuxt<\/h2>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0434\u0438\u043c Nuxt \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u043a\u0430\u043a \u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u043d\u0430\u0448 \u0441\u0430\u0439\u0442. \u0412 \u043a\u043e\u0440\u043d\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b nuxt.config.js<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">nuxt.config.js<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">const imageminMozjpeg = require('imagemin-mozjpeg') const ImageminPlugin = require('imagemin-webpack-plugin').default const isDev = process.env.NODE_ENV !== 'production'  module.exports = {   mode: 'universal',   ...(!isDev &amp;&amp; {     modern: 'client'   }),    head: {     htmlAttrs: {       lang: 'ru'     },     title: 'Nuxt APP',     meta: [       { hid: 'description', name: 'description', content: '\u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d' }     ],     link: [       { rel: 'shortcut icon', href: 'favicon.ico' }     ]   },   rootDir: __dirname,   serverMiddleware: [   ],   router: {     prefetchLinks: false   },   loading: { color: '#ddd' },   css: [     'normalize.css',     '.\/assets\/scss\/global-styles.scss'   ],   plugins: [   ],   modules: [     \/\/ Doc: https:\/\/axios.nuxtjs.org\/usage     '@nuxtjs\/axios',     'nuxt-trailingslash-module',     'nuxt-webfontloader',     'cookie-universal-nuxt',     '@nuxtjs\/style-resources'   ],    webfontloader: {     events: false,     google: {       families: ['Montserrat:400,500,600:cyrillic&amp;display=swap']     },     timeout: 5000   },   styleResources: {     \/\/ your settings here     \/\/ scss: ['.\/assets\/scss\/global-variables.scss'], \/\/ alternative: scss     less: [],     stylus: []   },   \/*   ** Axios module configuration   *\/   axios: {     \/\/ See https:\/\/github.com\/nuxt-community\/axios-module#options   },   render: {     \/\/ http2: {     \/\/     push: true,     \/\/     pushAssets: (req, res, publicPath, preloadFiles) =&gt; preloadFiles     \/\/     .map(f =&gt; `&lt;${publicPath}${f.file}&gt;; rel=preload; as=${f.asType}`)     \/\/   },     \/\/ compressor: false,     resourceHints: false,     etag: false,     static: {       etag: false     }   },   \/*   ** Build configuration   *\/   build: {     optimizeCss: false,     filenames: {       app: ({ isDev }) =&gt; isDev ? '[name].js' : 'js\/[contenthash].js',       chunk: ({ isDev }) =&gt; isDev ? '[name].js' : 'js\/[contenthash].js',       css: ({ isDev }) =&gt; isDev ? '[name].css' : 'css\/[contenthash].css',       img: ({ isDev }) =&gt; isDev ? '[path][name].[ext]' : 'img\/[contenthash:7].[ext]',       font: ({ isDev }) =&gt; isDev ? '[path][name].[ext]' : 'fonts\/[contenthash:7].[ext]',       video: ({ isDev }) =&gt; isDev ? '[path][name].[ext]' : 'videos\/[contenthash:7].[ext]'     },     ...(!isDev &amp;&amp; {       html: {         minify: {           collapseBooleanAttributes: true,           decodeEntities: true,           minifyCSS: true,           minifyJS: true,           processConditionalComments: true,           removeEmptyAttributes: true,           removeRedundantAttributes: true,           trimCustomFragments: true,           useShortDoctype: true         }       }     }),     splitChunks: {       layouts: true,       pages: true,       commons: true     },     optimization: {       minimize: !isDev     },     ...(!isDev &amp;&amp; {       extractCSS: {         ignoreOrder: true       }     }),     transpile: ['vue-lazy-hydration', 'intersection-observer'],     postcss: {       plugins: {         ...(!isDev &amp;&amp; {           cssnano: {             preset: ['advanced', {               autoprefixer: false,               cssDeclarationSorter: false,               zindex: false,               discardComments: {                 removeAll: true               }             }]           }         })       },       ...(!isDev &amp;&amp; {         preset: {           browsers: 'cover 99.5%',           autoprefixer: true         }       }),        order: 'cssnanoLast'     },     extend (config, ctx) {       const ORIGINAL_TEST = '\/\\\\.(png|jpe?g|gif|svg|webp)$\/i'       const vueSvgLoader = [         {           loader: 'vue-svg-loader',           options: {             svgo: false           }         }       ]       const imageMinPlugin = new ImageminPlugin({         pngquant: {           quality: '5-30',           speed: 7,           strip: true         },         jpegtran: {           progressive: true          },         gifsicle: {           interlaced: true         },         plugins: [           imageminMozjpeg({             quality: 70,             progressive: true           })          ]       })       if (!ctx.isDev) config.plugins.push(imageMinPlugin)        config.module.rules.forEach(rule =&gt; {         if (rule.test.toString() === ORIGINAL_TEST) {           rule.test = \/\\.(png|jpe?g|gif|webp)$\/i           rule.use = [             {               loader: 'url-loader',               options: {                 limit: 1000,                 name: ctx.isDev ? '[path][name].[ext]' : 'img\/[contenthash:7].[ext]'               }             }           ]         }       })       \/\/  Create the custom SVG rule       const svgRule = {         test: \/\\.svg$\/,         oneOf: [           {             resourceQuery: \/inline\/,             use: vueSvgLoader           },           {             resourceQuery: \/data\/,             loader: 'url-loader'           },           {             resourceQuery: \/raw\/,             loader: 'raw-loader'           },           {             loader: 'file-loader' \/\/ By default, always use file-loader           }         ]       }        config.module.rules.push(svgRule) \/\/ Actually add the rule     }   } } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u0441\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u0443\u043d\u043a\u0442\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0430<\/p>\n<p>  <\/p>\n<ul>\n<li>\n<pre><code class=\"javascript\">const imageminMozjpeg = require('imagemin-mozjpeg') const ImageminPlugin = require('imagemin-webpack-plugin').default<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c 2 \u043f\u0430\u043a\u0435\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0436\u0435 Webpack \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0441\u0436\u0430\u0442\u0438\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">const isDev = process.env.NODE_ENV !== 'production'<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0444\u043b\u0430\u0433\u0430 \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0443\u043d\u043a\u0442\u0430\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0430.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">mode: 'universal'<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u0434\u0430\u0451\u043c \u044f\u0432\u043d\u043e, \u0447\u0442\u043e \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c SSR \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 (\u0430 \u043d\u0435 SPA).<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">...(!isDev &amp;&amp; { modern: 'client' }),<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c ES6 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0434\u043b\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 <strong>!isDev<\/strong> \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e <strong>modern: &#8216;client&#8217;<\/strong> \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432 production. <strong>modern: &#8216;client&#8217;<\/strong> \u0433\u043e\u0432\u043e\u0440\u0438\u0442 Nuxt \u0441\u043e\u0437\u0434\u0430\u0442\u044c 2 \u0431\u0430\u043d\u0434\u043b\u0430, \u043e\u0434\u0438\u043d \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 ES6 Modules \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430\u043c\u0438, \u0430 \u0432\u0442\u043e\u0440\u043e\u0439 Legacy \u0442\u0440\u0430\u043d\u0441\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0447\u0435\u0440\u0435\u0437 Babel. \u0412 html \u0431\u0443\u0434\u0435\u0442 \u043f\u043e 2 \u0442\u0435\u0433\u0430 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 js \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u0438\u0434\u0430: <\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;script nomodule src=&quot;***&quot; defer&gt;&lt;\/script&gt;&lt;script type=&quot;module&quot; src=&quot;***&quot; defer&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u043f\u0430\u0440\u044b.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">head: { htmlAttrs: {   lang: 'ru' }, title: 'Nuxt APP', meta: [   { hid: 'description', name: 'description', content: '\u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d' } ], link: [   { rel: 'shortcut icon', href: 'favicon.ico' } ] }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 Head, \u043a\u0430\u043a \u043c\u044b \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u043b\u0438 \u0432 \u043d\u0430\u0448\u0435\u043c layout, \u043d\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e\u0442 head \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c \u0434\u043b\u044f \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a, \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 Title \u0438 Description \u0438 \u043f\u0443\u0442\u044c \u043a \u043d\u0430\u0448\u0435\u0439 favicon.ico (\u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u043d\u0435\u0442 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0435\u0451 \u043f\u043e\u0437\u0436\u0435).<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">rootDir: __dirname<\/code><\/pre>\n<p>  <\/p>\n<p>\u042f\u0432\u043d\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0447\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u0440\u043d\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0443\u0442\u0435\u0439 \u0438\u043c\u043f\u043e\u0440\u0442\u0430.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">router: { prefetchLinks: false }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c Nuxt, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043b\u0443\u0447\u0448\u0430\u0435\u0442 \u0432\u043e\u0441\u043f\u0440\u0438\u044f\u0442\u0438\u0435 UI \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445. \u042d\u0442\u043e\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043d\u0435\u0451 \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u043a\u043d\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430. \u0422\u043e \u0435\u0441\u0442\u044c \u0435\u0449\u0451 \u0434\u043e \u043a\u043b\u0438\u043a\u0430 \u043d\u0430 \u0441\u0441\u044b\u043b\u043a\u0443, \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0431\u0443\u0434\u0435\u0442 \u0443\u0436\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u0430 \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0431\u0435\u0437 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u043e\u0442\u043a\u0440\u043e\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0443. \u041d\u043e \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0442\u043d\u0438 \u0441\u0441\u044b\u043b\u043e\u043a \u0438 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u0437 \u043d\u0438\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u043b\u0430\u0441\u044c (\u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0441\u043b\u0430\u0431\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0430 \u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 2G).<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">loading: { color: '#ddd' }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0411\u0435\u0433\u0443\u0449\u0430\u044f \u043f\u043e\u043b\u043e\u0441\u043a\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446, \u0432\u0432\u0435\u0440\u0445\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u042d\u0442\u043e \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0446\u0432\u0435\u0442 \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u043b\u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0439. \u041e\u043d \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u043c\u043d\u044b\u0439 \u0438 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0435 \u043c\u0435\u0436\u0434\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u043c\u0438 \u043d\u043e \u043f\u0440\u0438 \u043f\u0440\u0438 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0438 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u043f\u043e XHR \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c. <\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">css: [ 'normalize.css' ]<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u0434\u0430\u0435\u043c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u0438\u043b\u0438 \u0434\u043b\u044f \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0441\u0442\u0438\u043b\u0438 \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u0430 normalize, \u0434\u043b\u044f \u0441\u0431\u0440\u043e\u0441\u0430 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0445 \u0441\u0442\u0438\u043b\u0435\u0439.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">modules: [ '@nuxtjs\/axios', 'nuxt-trailingslash-module', 'nuxt-webfontloader', 'cookie-universal-nuxt', '@nuxtjs\/style-resources' ]<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c Nuxt \u043c\u043e\u0434\u0443\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e \u0441\u0443\u0442\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0431\u044b\u0447\u043d\u044b\u043c\u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u0430\u043c\u0438 \u0434\u043b\u044f Vue, \u043d\u043e \u0443\u0436\u0435 \u0441\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u043c install, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0432 \u043d\u0443\u0436\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u041d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0438\u0445 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0432\u043e Vue instance, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0438\u0437 \u043d\u0438\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0438, \u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u0434\u0430\u043b\u0435\u0435 \u0438\u0434\u0442\u0438 \u0440\u0435\u0447\u044c.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">webfontloader: { events: false, google: {   families: ['Montserrat:400,500,600:cyrillic&amp;display=swap'] }, timeout: 5000 }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u0434\u0430\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433 \u0434\u043b\u044f \u043c\u043e\u0434\u0443\u043b\u044f <strong>nuxt-webfontloader<\/strong>. \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u043a\u043e\u0439 \u0448\u0440\u0438\u0444\u0442 \u0445\u043e\u0442\u0438\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0435\u0440\u0451\u043c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0448\u0440\u0438\u0444\u0442 \u0438\u0437 Google Fonts. \u041a\u043e\u0433\u0434\u0430 \u0432\u0441\u0435 \u0448\u0440\u0438\u0444\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b, \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442 \u0432 html \u0442\u0435\u0433, \u043a\u043b\u0430\u0441\u0441 wf-active. <strong>&amp;display=swap <\/strong> \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f html, \u043a\u043e\u0433\u0434\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0430\u0447\u043d\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c js \u043a\u043e\u0434, \u044d\u0442\u043e \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442 css \u0444\u0430\u0439\u043b \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u043d\u0430\u043c \u0448\u0440\u0438\u0444\u0442\u0430\u043c\u0438. \u0422\u0430\u043a \u0436\u0435 \u044d\u0442\u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044c \u0443\u043c\u0435\u0435\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0445\u0443\u043a\u0438 \u043d\u0430 \u0432\u0441\u0435\u0445 \u044d\u0442\u0430\u043f\u0430\u0445 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u043d\u043e \u043e\u043d\u0438 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u044b \u0441\u0435\u0439\u0447\u0430\u0441, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u043f\u0438\u0448\u0435\u043c <strong>events: false<\/strong>.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">styleResources: { scss: ['.\/assets\/scss\/global-variables.scss'], \/\/ alternative: scss less: [], stylus: [] }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u0434\u0430\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433 \u0434\u043b\u044f \u043c\u043e\u0434\u0443\u043b\u044f <strong>@nuxtjs\/style-resources<\/strong>. \u042d\u0442\u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0441\u0442\u0438\u043b\u0435\u0439 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432. \u041e\u0431\u044b\u0447\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 SCSS \u043d\u0430 \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0435\u043a\u0442. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0443 \u043d\u0430\u0441 \u0435\u0449\u0451 \u043d\u0435\u0442 \u0444\u0430\u0439\u043b\u0430 <strong>global-variables.scss<\/strong>, \u043d\u043e \u043c\u044b \u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u043e\u0437\u0436\u0435, \u0430 \u043c\u043e\u0434\u0443\u043b\u044c \u043d\u0435 \u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443, \u0435\u0441\u043b\u0438 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u0442 \u0444\u0430\u0439\u043b. <\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">axios: { \/\/ See https:\/\/github.com\/nuxt-community\/axios-module#options },<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u0434\u0430\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433 \u0434\u043b\u044f \u043c\u043e\u0434\u0443\u043b\u044f axios. \u041f\u043e\u043a\u0430 \u0447\u0442\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433 \u043f\u0443\u0441\u0442\u044b\u043c.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">render: { \/\/ http2: { \/\/     push: true, \/\/     pushAssets: (req, res, publicPath, preloadFiles) =&gt; preloadFiles \/\/     .map(f =&gt; `&lt;${publicPath}${f.file}&gt;; rel=preload; as=${f.asType}`) \/\/   }, \/\/ compressor: false, resourceHints: false \/\/ etag: false, \/\/ static: { \/\/  etag: false \/\/ } },<\/code><\/pre>\n<p>  <\/p>\n<p>Nuxt \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u0438\u043c\u0435\u0435\u0442 \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c Web Server, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043c\u0435\u0435\u0442 \u0432 http2. \u041d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u0440\u043e\u0435\u043a\u0442 \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0430 localhost, \u0430 \u0434\u043b\u044f http2 \u043d\u0443\u0436\u0435\u043d https, \u0442\u043e \u0434\u0430\u0431\u044b \u043d\u0435 \u0433\u043e\u0440\u043e\u0434\u0438\u0442\u044c \u043a\u043e\u0441\u0442\u044b\u043b\u0438 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u044d\u0442\u0443 \u043e\u043f\u0446\u0438\u044e.<br \/>  <strong>compressor<\/strong> \u044d\u0442\u043e Gzip \u0441\u0436\u0430\u0442\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u0442\u0434\u0430\u0451\u0442 \u0432\u0441\u0451 \u0441\u0436\u0430\u0442\u044b\u043c (html, js, css, \u0441\u0442\u0430\u0442\u0438\u043a\u0443). \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u0434\u0435\u0441\u044c <a href=\"https:\/\/www.npmjs.com\/package\/compression\">https:\/\/www.npmjs.com\/package\/compression<\/a> \u042f \u043b\u0438\u0448\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u044e, \u0447\u0442\u043e \u0443 \u0441\u0435\u0431\u044f \u0432 production \u044f \u044d\u0442\u0443 \u043e\u043f\u0446\u0438\u044e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u043b <strong>compressor: false<\/strong> \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u0430\u043c Nuxt \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f render, \u0430 \u0432\u0441\u044e \u0441\u0442\u0430\u0442\u0438\u043a\u0443 \u043e\u0442\u0434\u0430\u0451\u0442 Nginx \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u0441\u0436\u0430\u0442\u0438\u0435\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0430\u0431\u044b \u0434\u0432\u0430\u0436\u0434\u044b \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0434\u043d\u0443 \u0438 \u0442\u0443 \u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0443, \u043c\u043e\u0436\u043d\u043e \u044d\u0442\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c. \u041d\u043e \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Nuxt \u0434\u043b\u044f \u043e\u0442\u0434\u0430\u0447\u0438 \u0441\u0442\u0430\u0442\u0438\u043a\u0438 \u0438 \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0442\u0440\u043e\u0433\u0430\u0442\u044c \u044d\u0442\u0443 \u043e\u043f\u0446\u0438\u044e.<br \/>  \u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0438 \u0441 etag, \u0435\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f Nginx, \u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u044f\u0432\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c etags.<br \/>  <strong>resourceHints<\/strong> \u043c\u044b \u044f\u0432\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u043c, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0440\u0435\u0434\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b (\u0438\u0437 \u0442\u043e\u0439 \u0436\u0435 \u043e\u043f\u0435\u0440\u044b \u0447\u0442\u043e \u0438 prefetchLinks: false) .<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">optimizeCss: false<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u0437\u0436\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c cssNano \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438, \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0442\u0438\u043b\u0435\u0439.<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">filenames: {   app: ({ isDev }) =&gt; isDev ? '[name].js' : 'js\/[contenthash].js',   chunk: ({ isDev }) =&gt; isDev ? '[name].js' : 'js\/[contenthash].js',   css: ({ isDev }) =&gt; isDev ? '[name].css' : 'css\/[contenthash].css',   img: ({ isDev }) =&gt; isDev ? '[path][name].[ext]' : 'img\/[contenthash:7].[ext]',   font: ({ isDev }) =&gt; isDev ? '[path][name].[ext]' : 'fonts\/[contenthash:7].[ext]',   video: ({ isDev }) =&gt; isDev ? '[path][name].[ext]' : 'videos\/[contenthash:7].[ext]' },<\/code><\/pre>\n<p>  <\/p>\n<p>Nuxt \u0441\u0430\u043c \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442 \u0432 Webpack \u044d\u0442\u0443 \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0430. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0437\u0430\u0434\u0430\u0435\u043c \u0442\u043e, \u0447\u0442\u043e \u0432\u043e \u0432\u0440\u0435\u043c\u044f development \u0445\u043e\u0442\u0438\u043c \u0432\u0438\u0434\u0435\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u0438\u043c\u0435\u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432, \u0430 \u0432 production build \u0440\u0430\u0441\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b\u044b \u043f\u043e \u043f\u0430\u043f\u043a\u0430\u043c \u0438 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u043c\u0435\u043d\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <strong>contenthash<\/strong>. \u042d\u0442\u043e \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u0441\u043a\u0430\u0436\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 production, \u0430 \u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0432\u0441\u0435 js \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438 \u0441\u0442\u0438\u043b\u0438 \u0432 \u043a\u0435\u0448\u0435 \u0431\u0440\u0430\u0437\u0443\u0435\u0440\u0430. \u0427\u0442\u043e\u0431\u044b \u0438\u043d\u0432\u0430\u043b\u0438\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u0435\u0448, \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0443 \u0432\u0441\u0435\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0445\u0435\u0448-\u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0444\u0430\u0439\u043b \u043f\u043e\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u0442\u043e \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0437\u0430\u0445\u043e\u0434\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c \u0443\u0436\u0435 \u0444\u0430\u0439\u043b \u0441 \u0434\u0440\u0443\u0433\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c, \u0430 \u0442\u0435 \u0447\u0442\u043e \u043d\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0438\u0441\u044c \u043e\u0441\u0442\u0430\u043d\u0443\u0442\u0441\u044f \u0441 \u0442\u0435\u043c \u0436\u0435 \u0438\u043c\u0435\u043d\u0435\u043c \u0438 \u0431\u0443\u0434\u0443\u0442 \u0432\u0437\u044f\u0442\u044b \u0438 \u0441 \u043a\u0435\u0448\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430. <\/p>\n<p>  <\/li>\n<\/ul>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vo\/yj\/sz\/voyjszwq6ivxlgxo0ewooevccc0.jpeg\"\/><\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0438 \u0434\u0430\u0436\u0435 html \u0437\u0430\u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c, \u0447\u0442\u043e \u0441\u0432\u043e\u0434\u0438\u0442 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043a 0 \u0432\u0435\u0441\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u043c\u0435\u0436\u0434\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c.<\/p>\n<p>  <\/p>\n<ul>\n<li>\n<pre><code class=\"javascript\">...(!isDev &amp;&amp; {   html: {     minify: {       collapseBooleanAttributes: true,       decodeEntities: true,       minifyCSS: true,       minifyJS: true,       processConditionalComments: true,       removeEmptyAttributes: true,       removeRedundantAttributes: true,       trimCustomFragments: true,       useShortDoctype: true     }   } })<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0434\u043b\u044f Development \u0432\u0441\u044e \u043c\u0438\u043d\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e html, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">splitChunks: {   layouts: true,   pages: true,   commons: true },<\/code><\/pre>\n<p>  <\/p>\n<p>\u0420\u0430\u0437\u0431\u0438\u0432\u0430\u0435\u043c \u043d\u0430 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u0447\u0430\u043d\u043a\u0438 \u0432\u0441\u0451 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">optimization: {   minimize: !isDev },<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u0438\u043d\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e js \u0434\u043b\u044f development.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">...(!isDev &amp;&amp; {   extractCSS: {     ignoreOrder: true   } }),<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e Nuxt \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u0441\u0435 \u0441\u0442\u0438\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043f\u0440\u044f\u043c\u043e \u0432\u043d\u0443\u0442\u0440\u044c html \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u0433 style. \u042d\u0442\u043e \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443, \u0442\u0430\u043a \u043a\u0430\u043a \u0443 \u043d\u0430\u0441 \u043d\u0438\u0433\u0434\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0443\u0436\u043d\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0443 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c css \u0444\u0430\u0439\u043b\u044b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. \u041d\u043e \u044d\u0442\u043e \u0442\u0430\u043a \u0436\u0435 \u043b\u0438\u0448\u0430\u0435\u0442 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u0442\u044c css \u0441\u0442\u0438\u043b\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f development \u043c\u044b \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c inline styles, \u0430 \u0432 production \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0435\u043c \u0438\u0445 \u043d\u0430 \u0447\u0430\u043d\u043a\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b.<br \/>  <strong>ignoreOrder: true<\/strong> \u041d\u0443\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043d\u0430\u043c \u043d\u0435 \u0432\u044b\u0434\u0430\u0432\u0430\u043b webpack \u043b\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u0430\u0445 \u0438 \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u0430\u0445, \u044d\u0442\u043e \u0441\u0432\u043e\u0435\u043e\u0431\u0440\u0430\u0437\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0431\u0430\u0433\u0430 <a href=\"https:\/\/github.com\/nuxt\/nuxt.js\/issues\/4885\">#4885<\/a>.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">transpile: ['vue-lazy-hydration', 'intersection-observer']<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e Babel \u0441\u0442\u0430\u0440\u0430\u0435\u0442\u0441\u044f \u0442\u0440\u0430\u043d\u0441\u043f\u043b\u0438\u0442\u0438\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0435\u0441\u044c \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u043e\u043d \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u043c\u0438 \u0438 \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u044f\u0432\u043d\u043e. <\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">postcss: {   plugins: {     ...(!isDev &amp;&amp; {       cssnano: {         preset: ['advanced', {           autoprefixer: false,           cssDeclarationSorter: false,           zindex: false,           discardComments: {             removeAll: true           }         }]       }     })   },   ...(!isDev &amp;&amp; {     preset: {       browsers: 'cover 99.5%',       autoprefixer: true     }   }),    order: 'cssnanoLast' }<\/code><\/pre>\n<p>  <\/p>\n<p>Nuxt \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u0438\u043c\u0435\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 Postcss \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0437\u0434\u0435\u0441\u044c \u043c\u044b \u0437\u0430\u0434\u0430\u0451\u043c \u043a\u043e\u043d\u0444\u0438\u0433. \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u0434\u043b\u044f Postcss, \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u0445 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0434\u043b\u044f development \u0432\u0441\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u044b, \u0430 \u0432 production \u0432\u0435\u0441\u044c css \u0431\u0443\u0434\u0435\u0442 \u043c\u0438\u043d\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d \u0438 \u043a \u043d\u0435\u043c\u0443 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d\u044b vendor \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u044b \u0434\u043b\u044f 99.5% \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432. \u0422\u0430\u043a \u0436\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u0432 \u0434\u0432\u0443\u0445 \u0441\u0440\u0435\u0434\u0430\u0445.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">extend (config, ctx) {<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c webpack \u043a\u043e\u043d\u0444\u0438\u0433, \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 loaders \u0438\u043b\u0438 test.<br \/>  \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e Webpack <code>'\/\\\\.(png|jpe?g|gif|svg|webp)$\/i'<\/code> \u0438\u0449\u0435\u0442 \u0432\u0441\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0438 svg \u0444\u0430\u0439\u043b\u044b \u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0438\u0445 \u0447\u0435\u0440\u0435\u0437 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 url-loader file-loader \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u0444\u0430\u0439\u043b\u044b. \u041d\u043e \u043e\u043d \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0438\u0445 \u043d\u0435 \u0441\u0436\u0438\u043c\u0430\u0435\u0442 \u0438 \u0435\u0433\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 svg \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u044b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u044d\u0442\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435.<\/p>\n<p>  <\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u0443\u0434\u0435\u043c \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0438 \u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u044b Webpack, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0441\u0442\u0440\u043e\u043a\u0443 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0437\u0436\u0435 \u0435\u0451 \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u0438\u0442\u044c.<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">const ORIGINAL_TEST = '\/\\\\.(png|jpe?g|gif|svg|webp)$\/i' const vueSvgLoader = [ {     loader: 'vue-svg-loader',     options: {     svgo: false     } } ] const imageMinPlugin = new ImageminPlugin({ pngquant: { quality: '5-30', speed: 7, strip: true }, jpegtran: { progressive: true }, gifsicle: { interlaced: true }, plugins: [ imageminMozjpeg({ quality: 70, progressive: true })] })<\/code><\/pre>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">if (!ctx.isDev) config.plugins.push(imageMinPlugin)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u0434\u043b\u044f \u0441\u0436\u0430\u0442\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 production<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">  config.module.rules.forEach(rule =&gt; {     if (rule.test.toString() === ORIGINAL_TEST) {       rule.test = \/\\.(png|jpe?g|gif|webp)$\/i       rule.use = [         {           loader: 'url-loader',           options: {             limit: 1000,             name: ctx.isDev ? '[path][name].[ext]' : 'img\/[contenthash:7].[ext]'           }         }       ]     }   })<\/code><\/pre>\n<p>  <\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u0438 \u0443\u0431\u0438\u0440\u0430\u0435\u043c \u0438\u0437 \u043d\u0435\u0433\u043e svg<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">  const svgRule = {     test: \/\\.svg$\/,     oneOf: [       {         resourceQuery: \/inline\/,         use: vueSvgLoader       },       {         resourceQuery: \/data\/,         loader: 'url-loader'       },       {         resourceQuery: \/raw\/,         loader: 'raw-loader'       },       {         loader: 'file-loader' \/\/ By default, always use file-loader       }     ]   }   config.module.rules.push(svgRule) <\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0430\u0448 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u0434\u043b\u044f svg<\/p>\n<p>  <\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 nuxt.config.js \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430 \u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442.<\/p>\n<p>  <\/p>\n<h2 id=\"pervyy-zapusk\">\u041f\u0435\u0440\u0432\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a<\/h2>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c Nuxt \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 development. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u043f\u0438\u0448\u0435\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 <strong>yarn dev<\/strong><br \/>  \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/localhost:3000\/\">http:\/\/localhost:3000\/<\/a> \u0438 \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0432\u0441\u0451 \u0445\u043e\u0440\u043e\u0448\u043e.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/yh\/2h\/mp\/yh2hmpr0emkkvtjpyw-qis-kln0.jpeg\"\/><\/p>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c production \u0441\u0435\u0440\u0432\u0435\u0440, \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c dev server \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <strong>Ctrl+C<\/strong> \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043f\u0438\u0448\u0435\u043c <strong>yarn buildandstart<\/strong><\/p>\n<p>  <\/p>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0442\u043e\u043c\u0443 \u0436\u0435 \u043f\u043e\u0440\u0442\u0443, \u043d\u043e \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0432 package.json. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jm\/yh\/my\/jmyhmyg25uinraoych0nmuhwjek.jpeg\"\/><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0447\u0435\u043c\u0443 \u0432\u044b\u0434\u0430\u0451\u0442 99\/100<\/p>\n<p>  <\/p>\n<ol>\n<li>\u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0448\u0440\u0438\u0444\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0443\u0436\u0435 \u0441\u0430\u043c app.js \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u0441\u044f \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435. \u041f\u043e\u0441\u043b\u0435 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u043d\u0438 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u0441 Google Fonts. \u0412\u0441\u0451 \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u0415\u0441\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c Webfonts Loader, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c 100\/100, \u043d\u043e \u043c\u044b \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u043c.<\/li>\n<li>\u041c\u044b \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c http2 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0432\u0441\u0435\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438 \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 html, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 production \u044d\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043d\u0430 0,5-1\u0441. \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u043d\u044c\u0448\u0435 (\u043f\u0440\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 Nuxt \u0438 Nginx).<\/li>\n<li>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e Lighthouse \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 4x CPU Throttling, \u0447\u0442\u043e\u0431\u044b \u0441\u0438\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u044b, \u0447\u0442\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432.<\/li>\n<li>Lighthouse \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442 \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043a\u0435\u0448\u0438 \u0438 \u0441\u0438\u043c\u0443\u043b\u0438\u0440\u0443\u0435\u0442 \u043f\u0435\u0440\u0432\u044b\u0439 \u0437\u0430\u0445\u043e\u0434 \u043d\u0430 \u0441\u0430\u0439\u0442. \u041d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0431\u0438\u0442\u043e \u043d\u0430 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u0447\u0430\u043d\u043a\u043e\u0432 \u0434\u043b\u044f \u043a\u0435\u0448\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435.<\/li>\n<li>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0432\u0435\u0431\u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u043b\u043e\u0445\u043e \u043e\u0442\u0434\u0430\u0451\u0442 \u0441\u0442\u0430\u0442\u0438\u043a\u0443, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 Nginx<\/li>\n<\/ol>\n<p>  <\/p>\n<p>\u0418\u0437 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u0448\u0430\u043c\u0430\u043d\u0438\u0442\u044c \u0442\u043e \u0431\u0435\u0437 \u043e\u0441\u043e\u0431\u044b\u0445 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u043e\u0442 \u044d\u0442\u043e, \u043d\u043e \u044d\u0442\u043e \u0443\u0436\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u0441 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u043e\u0439 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043a HighLoad \u0438 \u0442\u0434.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/zl\/sp\/3a\/zlsp3asawacw3fcm-tek337hgj4.jpeg\"\/><\/p>\n<p>  <\/p>\n<h2 id=\"napolnyaem-sayt\">\u041d\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0441\u0430\u0439\u0442<\/h2>\n<p>  <\/p>\n<h3 id=\"sozdayom-vuex-store\">\u0421\u043e\u0437\u0434\u0430\u0451\u043c Vuex store<\/h3>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c API, \u0430 \u0431\u0443\u0434\u0435\u043c \u044d\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043d\u0438\u043c, \u0442\u043e \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u0438\u0440\u0443\u0435\u043c \u0432\u0441\u044e \u043b\u043e\u0433\u0438\u043a\u0443 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0447\u0435\u0440\u0435\u0437 Vuex.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0432 \u043a\u043e\u0440\u043d\u0435 \u043f\u0430\u043f\u043a\u0443 <strong>store<\/strong> \u0438 \u0444\u0430\u0439\u043b <strong>index.js<\/strong> \u0441 \u0442\u0430\u043a\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u043c<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">index.js<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">\/\/ function for Mock API const sleep = m =&gt; new Promise(r =&gt; setTimeout(r, m)) const categories = [   {     cName: '\u041a\u043e\u0442\u0438\u043a\u0438',     cSlug: 'cats',     cImage: 'https:\/\/source.unsplash.com\/300x300\/?cat,cats'   },   {     cName: '\u0421\u043e\u0431\u0430\u0447\u043a\u0438',     cSlug: 'dogs',     cImage: 'https:\/\/source.unsplash.com\/300x300\/?dog,dogs'   },   {     cName: '\u0412\u043e\u043b\u0447\u043a\u0438',     cSlug: 'wolfs',     cImage: 'https:\/\/source.unsplash.com\/300x300\/?wolf'   },   {     cName: '\u0411\u044b\u0447\u043a\u0438',     cSlug: 'bulls',     cImage: 'https:\/\/source.unsplash.com\/300x300\/?ox'   } ]  export const state = () =&gt; ({   categoriesList: [] }) export const mutations = {   SET_CATEGORIES_LIST (state, categories) {     state.categoriesList = categories   } } export const actions = {   async getCategoriesList ({ commit }) {     try {       await sleep(1000)       await commit('SET_CATEGORIES_LIST', categories)     } catch (err) {       console.log(err)       throw new Error('\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u0435 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443')     }   } } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u0441 Vuex <strong>\u043f\u043e\u0434 \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u043e\u043c <\/strong>\u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Vuex \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435<\/b><\/p>\n<div class=\"spoiler_text\">\n<ul>\n<li>\n<pre><code class=\"javascript\">const sleep = m =&gt; new Promise(r =&gt; setTimeout(r, m))<\/code><\/pre>\n<p>  <\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043d\u0430\u043c \u0441\u0438\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0443 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 Async \u0444\u0443\u043d\u043a\u0446\u0438\u0439.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">export const state = () =&gt; ({ categoriesList: [] })<\/code><\/pre>\n<p>  <\/p>\n<p>\u042d\u0442\u043e \u043d\u0430\u0448\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0412 \u043d\u0451\u043c \u043c\u044b \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">export const mutations = { SET_CATEGORIES_LIST (state, categories) { state.categoriesList = categories } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0427\u0435\u0440\u0435\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043c\u0443\u0442\u0430\u0446\u0438\u044f\u043c\u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. \u041d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043c\u0435\u043d\u044f\u0442\u044c \u0435\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e. \u042f \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043e\u043f\u0443\u0441\u0442\u0438\u043b \u044d\u0442\u0430\u043f \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 \u0438 \u0442\u0434. \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0451 \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043a \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d\u0438\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">export const actions = { async getCategoriesList ({ commit }) { try {   await sleep(1000)   await commit('SET_CATEGORIES_LIST', categories) } catch (err) {   console.log(err)   throw new Error('\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u0435 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443') } } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u0448\u0438 actions, \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043d\u043e \u043e\u043d\u0438 \u043d\u0435 \u043c\u0435\u043d\u044f\u044e\u0442 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u043d\u043e \u0437\u0430\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u043e\u0431\u044a\u0435\u043a\u0442 store \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f comit, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u0438\u043c\u044f \u043c\u0443\u0442\u0430\u0446\u0438\u0438, \u0430 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0432 \u043c\u0443\u0442\u0430\u0446\u0438\u044e. \u0410 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 action \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 Nuxt \u0433\u0434\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u0440\u0430\u0437\u043d\u044b\u043c \u043f\u043b\u0430\u0433\u0438\u043d\u0430\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 axios \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c API.<br \/>  \u041f\u043e \u0441\u0443\u0442\u0438 \u0432 actions \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0432\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 API. \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0442\u0430\u043a\u0436\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 actions, \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u044f \u0446\u0435\u043f\u043e\u0447\u043a\u0438. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u0441\u0438\u043c\u0443\u043b\u0438\u0440\u0443\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 API, \u043d\u043e \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0451 \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 API \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0430 \u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0441\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043a\u0440\u044b\u0442\u0430. <\/p>\n<p>  <\/li>\n<\/ul>\n<\/div>\n<\/div>\n<p>  <\/p>\n<h3 id=\"sozdaem-blok-kategoriy\">\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0431\u043b\u043e\u043a \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439<\/h3>\n<p>  <\/p>\n<p>\u0412 \u043f\u0430\u043f\u043a\u0435 components \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0430\u043f\u043a\u0443 commons, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0431\u0449\u0438\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b. \u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b <strong>CategoriesList.vue<\/strong> \u0441 \u0442\u0430\u043a\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u043c:<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">CategoriesList.vue<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"html\">&lt;template&gt;   &lt;div&gt;     &lt;h2&gt;\u0421\u043f\u0438\u0441\u043e\u043a \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439&lt;\/h2&gt;     &lt;div :class=&quot;$style.wrapper&quot;&gt;       &lt;div         v-for=&quot;category in categories&quot;         :key=&quot;category.cSlug&quot;         :class=&quot;$style.block&quot;       &gt;         &lt;nuxt-link :to=&quot;`\/category\/${cSlug}`&quot;&gt;           &lt;p&gt;{{ category.cName }}&lt;\/p&gt;           &lt;img :src=&quot;category.cImage&quot; \/&gt;         &lt;\/nuxt-link&gt;       &lt;\/div&gt;     &lt;\/div&gt;   &lt;\/div&gt; &lt;\/template&gt;  &lt;script&gt; export default {   props: {     categories: {       type: Array,       default: () =&gt; []     }   } } &lt;\/script&gt;  &lt;style lang=&quot;scss&quot; module&gt; .wrapper {   display: flex; } .block { display: flex; flex-direction: column; } &lt;\/style&gt;<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<ul>\n<li>\n<pre><code class=\"xml\">&lt;style lang=&quot;scss&quot; module&gt; .wrapper { display: flex; } .block { display: flex; flex-direction: column; } &lt;\/style&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u043e\u0432\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e CSS Modules, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u0434\u0451\u0442 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043b\u0430\u0441\u0441 <strong>wrapper<\/strong> \u0432 <strong>wrapper_26mY3 <\/strong>, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0430\u043c \u043d\u0435 \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u043e\u0431 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0432 \u0441\u0442\u0438\u043b\u044f\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432.<br \/>  \u041a \u043a\u043b\u0430\u0441\u0441\u0430\u043c \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u044a\u0435\u043a\u0442 <strong>$style<\/strong> \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">props: { categories: {   type: Array,   default: () =&gt; [] } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e, \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0433\u043e dump (\u0433\u043b\u0443\u043f\u044b\u043c) \u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0422\u043e \u0435\u0441\u0442\u044c \u043e\u043d \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 API \u0438\u043b\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"xml\">&lt;nuxt-link :to=&quot;`\/category\/${cSlug}`&quot;&gt;<\/code><\/pre>\n<p>  <\/p>\n<p><strong>Nuxt-link<\/strong> \u044d\u0442\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u043e\u0431\u0432\u0451\u0440\u0442\u043a\u0430 \u0432\u043e\u043a\u0440\u0443\u0433 <strong>&lt;router-link&gt; <\/strong>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0435\u0440\u0451\u0442 \u043d\u0430 \u0441\u0435\u0431\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044b \u043c\u0435\u0436\u0434\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u043c\u0438, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u043b\u0438 \u0440\u0430\u043d\u0435\u0435 (\u043f\u0440\u0435\u0434\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u0430 \u0441\u0441\u044b\u043b\u043a\u0430 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<br \/>  \u041c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0432 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 <strong>to<\/strong> \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0439 \u043b\u0438\u0442\u0435\u0440\u0430\u043b \u0441 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <strong>cSlug <\/strong> \u0432 \u043a\u043e\u043d\u0446\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0443\u0442\u0438 \u043a \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0435\u0440\u0432\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u044d\u0442\u043e \u043e\u0442\u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u0441\u044f \u0432 <\/p>\n<p>  <\/p>\n<pre><code class=\"html\">&lt;a href=&quot;\/category\/cats&quot; class=&quot;&quot;&gt;&lt;p&gt;\u041a\u043e\u0442\u0438\u043a\u0438&lt;\/p&gt; &lt;img src=&quot;https:\/\/source.unsplash.com\/300x300\/?cat,cats&quot;&gt;&lt;\/a&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418 \u0445\u043e\u0442\u044f \u0432 dom \u044d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u0439 <strong>a href<\/strong>, \u043d\u043e \u043d\u0430 \u043d\u0451\u043c \u0432\u0438\u0441\u044f\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043a\u043b\u0438\u043a\u043e\u0432 \u0438 IObserver. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d JS \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435, \u043e\u043d \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043e\u0442\u0440\u0435\u043d\u0434\u0435\u0440\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. <\/p>\n<p>  <\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"perepishem-kornevoy-indexvue\">\u041f\u0435\u0440\u0435\u043f\u0438\u0448\u0435\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 index.vue<\/h3>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0441\u0430\u0439\u0442\u0430. <\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">index.vue<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;template&gt;   &lt;div&gt;     &lt;h1&gt;\u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d &quot;\u0425\u0432\u043e\u0441\u0442\u0438\u043a\u0438&quot;&lt;\/h1&gt;     &lt;CategoriesList :categories=&quot;categories&quot; \/&gt;   &lt;\/div&gt; &lt;\/template&gt;  &lt;script&gt; import CategoriesList from '~~\/components\/common\/CategoriesList' import { mapState } from 'vuex' export default {   components: {     CategoriesList   },   async asyncData ({ app, route, params, error, store }) {     try {       await store.dispatch('getCategoriesList')     } catch (err) {       console.log(err)       return error({         statusCode: 404,         message: '\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u044b \u0438\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d'       })     }   },   computed: {     ...mapState({       categories: 'categoriesList'     })   } } &lt;\/script&gt; <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<ul>\n<li>\n<pre><code class=\"javascript\">import CategoriesList from '~~\/components\/common\/CategoriesList'<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0448 \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f <strong>~~<\/strong>, \u0447\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0439 \u043f\u0443\u0442\u044c.<\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">import { mapState } from 'vuex'<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439.<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">async asyncData ({ app, route, params, error, store }) { try {   await store.dispatch('getCategoriesList') } catch (err) {   console.log(err)   return error({     statusCode: 404,     message: '\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u044b \u0438\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d'   }) } },<\/code><\/pre>\n<p>  <\/p>\n<p><strong>asyncData <\/strong> \u042d\u0442\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 Nuxt \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0412 \u043d\u0451\u043c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 API \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u043d\u043e \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0438\u0445 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u044b\u0437\u0432\u0430\u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 action \u0432 Vuex. \u0422\u0430\u043a \u0436\u0435 \u043f\u0435\u0440\u0435\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430 <strong>async <\/strong>, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u0441\u043a\u0430\u0437\u0430\u0442\u044c Nuxt \u043d\u0435 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u043e\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 API \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b. <\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">computed: { ...mapState({   categories: 'categoriesList' }) }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0427\u0435\u0440\u0435\u0437 \u043e\u0431\u0432\u0435\u0440\u0442\u043a\u0443 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043e\u0431\u044a\u0435\u043a\u0442 <strong>categories<\/strong> \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0439 \u043a \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044e <strong>categoriesList<\/strong><\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"xml\">&lt;CategoriesList :categories=&quot;categories&quot; \/&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u044d\u0442\u043e\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u044f \u0435\u043c\u0443 \u0432 props \u043e\u0431\u044a\u0435\u043a\u0442 <strong>categories<\/strong><\/p>\n<p>  <\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"zapuskaem-server\">\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440<\/h3>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/nv\/pa\/x-\/nvpax-8h_109peoiauvhhnt_whw.jpeg\"\/><\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044e nuxt \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442, \u043d\u043e \u043e\u043d \u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u0442. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0441\u0432\u043e\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442.<\/p>\n<p>  <\/p>\n<h3 id=\"sozdayom-stranicu-kategorii\">\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438<\/h3>\n<p>  <\/p>\n<p>\u0412 \u043f\u0430\u043f\u043a\u0435 pages \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043f\u0430\u043f\u043a\u0443 categories \u0438 \u0432 \u043d\u0435\u0439 \u0444\u0430\u0439\u043b \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <strong>_CategorySlug.vue<\/strong> \u0442\u0430\u043a\u043e\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f:<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">_CategorySlug.vue<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;template&gt;   &lt;div&gt;     &lt;h1&gt;{{ category.cName }}&lt;\/h1&gt;     &lt;p&gt;{{ category.cDesc }}&lt;\/p&gt;   &lt;\/div&gt; &lt;\/template&gt;  &lt;script&gt; import { mapState } from 'vuex' export default {   async asyncData ({ app, params, route, error }) {     try {       await app.store.dispatch('getCurrentCategory', { route })     } catch (err) {       console.log(err)       return error({         statusCode: 404,         message: '\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u0430 \u0438\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d'       })     }   },   computed: {     ...mapState({       category: 'currentCategory'     })   },   head () {     return {       title: this.category.cTitle,       meta: [         {           hid: 'description',           name: 'description',           content: this.category.cMetaDescription         }       ]     }   } } &lt;\/script&gt; <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c\u0441\u044f \u0441 _, \u0447\u0442\u043e\u0431\u044b Nuxt \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u044d\u0442\u043e \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043c\u0430\u0440\u0448\u0440\u0443\u0442.<br \/>  \u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 <a href=\"http:\/\/127.0.0.1:3000\/category\/cats\">http:\/\/127.0.0.1:3000\/category\/cats<\/a><br \/>  \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u043e\u0431\u044a\u0435\u043a\u0442\u0443 route \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c <strong>route.params.CategorySlug<\/strong> (\u0431\u0435\u0437 \u043d\u0438\u0436\u043d\u0435\u0433\u043e \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u044f), \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u043d\u044b\u043c <strong>cats<\/strong><br \/>  \u0412 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0432\u0441\u0435 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e <strong>index.vue<\/strong>, \u043d\u043e \u0435\u0441\u0442\u044c \u043f\u0430\u0440\u0443 \u043e\u0442\u043b\u0438\u0447\u0438\u0439<\/p>\n<p>  <\/p>\n<ul>\n<li>\n<pre><code class=\"javascript\">await app.store.dispatch('getCurrentCategory', { route })<\/code><\/pre>\n<p>  <\/p>\n<p>\u041c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c actions, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0448\u0430\u0433\u0435, \u043d\u043e \u0432\u0442\u043e\u0440\u044b\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0432\u044b\u0448\u0435\u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 route. <\/p>\n<p>  <\/li>\n<li>\n<pre><code class=\"javascript\">head () { return {   title: this.category.cTitle,   meta: [     {       hid: 'description',       name: 'description',       content: this.category.cMetaDescription     }   ] } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b Title \u0438 Meta description, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0438\u0437 API.<\/p>\n<p>  <\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"izmenyaem-vuex\">\u0418\u0437\u043c\u0435\u043d\u044f\u0435\u043c Vuex<\/h3>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">index.js<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">\/\/ function for Mock API const sleep = m =&gt; new Promise(r =&gt; setTimeout(r, m)) const categories = [   {     cTitle: '\u041a\u043e\u0442\u0438\u043a\u0438',     cName: '\u041a\u043e\u0442\u0438\u043a\u0438',     cSlug: 'cats',     cMetaDescription: '\u041c\u0435\u0442\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435',     cDesc: '\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435',     cImage: 'https:\/\/source.unsplash.com\/300x300\/?cat,cats'   },   {     cTitle: '\u0421\u043e\u0431\u0430\u0447\u043a\u0438',     cName: '\u0421\u043e\u0431\u0430\u0447\u043a\u0438',     cSlug: 'dogs',     cMetaDescription: '\u041c\u0435\u0442\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435',     cDesc: '\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435',     cImage: 'https:\/\/source.unsplash.com\/300x300\/?dog,dogs'   },   {     cTitle: '\u0412\u043e\u043b\u0447\u043a\u0438',     cName: '\u0412\u043e\u043b\u0447\u043a\u0438',     cSlug: 'wolfs',     cMetaDescription: '\u041c\u0435\u0442\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435',     cDesc: '\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435',     cImage: 'https:\/\/source.unsplash.com\/300x300\/?wolf'   },   {     cTitle: '\u0411\u044b\u0447\u043a\u0438',     cName: '\u0411\u044b\u0447\u043a\u0438',     cSlug: 'bulls',     cMetaDescription: '\u041c\u0435\u0442\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435',     cDesc: '\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435',     cImage: 'https:\/\/source.unsplash.com\/300x300\/?bull'   } ]  export const state = () =&gt; ({   categoriesList: [],   currentCategory: {} }) export const mutations = {   SET_CATEGORIES_LIST (state, categories) {     state.categoriesList = categories   },   SET_CURRENT_CATEGORY (state, category) {     state.currentCategory = category   } } export const actions = {   async getCategoriesList ({ commit }) {     try {       await sleep(1000)       await commit('SET_CATEGORIES_LIST', categories)     } catch (err) {       console.log(err)       throw new Error('\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u0435 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443')     }   },   async getCurrentCategory ({ commit }, { route }) {     await sleep(1000)     const category = categories.find((cat) =&gt; cat.cSlug === route.params.CategorySlug)     await commit('SET_CURRENT_CATEGORY', category)   } } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p><strong>getCurrentCategory <\/strong> \u0432 \u044d\u0442\u043e\u043c action \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e route \u043c\u044b \u0438\u0449\u0435\u043c \u043d\u0443\u0436\u043d\u0443\u044e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044e \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0451 \u0432 state. <\/p>\n<p>  <\/p>\n<h3 id=\"zapuskaem\">\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c<\/h3>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0448\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442.<\/p>\n<p>  <\/p>\n<h2 id=\"sozdayom-tovary-dlya-kategoriy\">\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0442\u043e\u0432\u0430\u0440\u044b \u0434\u043b\u044f \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439<\/h2>\n<p>  <\/p>\n<p>\u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u043f\u0430\u0432\u0448\u0438\u0439\u0441\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 JSON \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ch\/sz\/iq\/chsziqoqu--7izb-ap86qp347k0.jpeg\"\/><br \/>  \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043a\u043b\u0430\u0434\u0435\u043c \u0432 <strong>static\/mock<\/strong>. Nuxt \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0444\u0430\u0439\u043b\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043b\u0435\u0436\u0430\u0442 \u0432 \u043f\u0430\u043f\u043a\u0435 static. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0434\u0442\u044f\u043d\u0443\u0442\u044c \u043d\u0430\u0448\u0438 \u0442\u043e\u0432\u0430\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f Axios.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u043d\u0430\u0448 Vuex \u043a \u0442\u0430\u043a\u043e\u043c\u0443 \u0432\u0438\u0434\u0443:<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">index.js<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">\/\/ function for Mock API const sleep = m =&gt; new Promise(r =&gt; setTimeout(r, m)) const categories = [   {     id: 'cats',     cTitle: '\u041a\u043e\u0442\u0438\u043a\u0438',     cName: '\u041a\u043e\u0442\u0438\u043a\u0438',     cSlug: 'cats',     cMetaDescription: '\u041c\u0435\u0442\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435',     cDesc: '\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435',     cImage: 'https:\/\/source.unsplash.com\/300x300\/?cat,cats',     products: []   },   {     id: 'dogs',     cTitle: '\u0421\u043e\u0431\u0430\u0447\u043a\u0438',     cName: '\u0421\u043e\u0431\u0430\u0447\u043a\u0438',     cSlug: 'dogs',     cMetaDescription: '\u041c\u0435\u0442\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435',     cDesc: '\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435',     cImage: 'https:\/\/source.unsplash.com\/300x300\/?dog,dogs',     products: []   },   {     id: 'wolfs',     cTitle: '\u0412\u043e\u043b\u0447\u043a\u0438',     cName: '\u0412\u043e\u043b\u0447\u043a\u0438',     cSlug: 'wolfs',     cMetaDescription: '\u041c\u0435\u0442\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435',     cDesc: '\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435',     cImage: 'https:\/\/source.unsplash.com\/300x300\/?wolf',     products: []   },   {     id: 'bulls',     cTitle: '\u0411\u044b\u0447\u043a\u0438',     cName: '\u0411\u044b\u0447\u043a\u0438',     cSlug: 'bulls',     cMetaDescription: '\u041c\u0435\u0442\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435',     cDesc: '\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435',     cImage: 'https:\/\/source.unsplash.com\/300x300\/?bull',     products: []   } ] function addProductsToCategory (products, category) {   const categoryInner = { ...category, products: [] }   products.map(p =&gt; {     if (p.category_id === category.id) {       categoryInner.products.push({         id: p.id,         pName: p.pName,         pSlug: p.pSlug,         pPrice: p.pPrice,         image: `https:\/\/source.unsplash.com\/300x300\/?${p.pName}`       })     }   })   return categoryInner } export const state = () =&gt; ({   categoriesList: [],   currentCategory: {},   currentProduct: {} }) export const mutations = {   SET_CATEGORIES_LIST (state, categories) {     state.categoriesList = categories   },   SET_CURRENT_CATEGORY (state, category) {     state.currentCategory = category   },   SET_CURRENT_PRODUCT (state, product) {     state.currentProduct = product   } } export const actions = {   async getCategoriesList ({ commit }) {     try {       await sleep(1000)       await commit('SET_CATEGORIES_LIST', categories)     } catch (err) {       console.log(err)       throw new Error('\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u0435 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0443')     }   },   async getCurrentCategory ({ commit }, { route }) {     await sleep(1000)     const category = categories.find((cat) =&gt; cat.cSlug === route.params.CategorySlug)     const products = await this.$axios.$get('\/mock\/products.json')      await commit('SET_CURRENT_CATEGORY', addProductsToCategory(products, category))   } } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u043b\u0438 action <strong>getCurrentCategory <\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e axios \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0444\u0430\u0439\u043b products.json. \u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0432\u0441\u0435\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0438 \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438 \u043d\u0430 \u043d\u0438\u0445.<\/p>\n<p>  <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0438\u0445 \u043e\u0442\u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 <strong>ProductBrief.vue<\/strong>\u0432 components\/category.<\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">ProductBrief.vue<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">&lt;template&gt;   &lt;div :class=&quot;$style.wrapper&quot;&gt;     &lt;nuxt-link :to=&quot;`\/product\/${product.pSlug}`&quot;&gt;       &lt;p&gt;{{ product.pName }}&lt;\/p&gt;       &lt;img :src=&quot;product.image&quot; \/&gt;     &lt;\/nuxt-link&gt;     &lt;p&gt;\u0426\u0435\u043d\u0430 {{ product.pPrice }}&lt;\/p&gt;   &lt;\/div&gt; &lt;\/template&gt;  &lt;script&gt; export default {   props: {     product: {       type: Object,       default: () =&gt; {}     }   } } &lt;\/script&gt;  &lt;style lang=&quot;scss&quot; module&gt; .wrapper {   display: flex;   flex-direction: column; } &lt;\/style&gt;<\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u042d\u0442\u043e dump \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u043e\u0439 \u0442\u043e\u0432\u0430\u0440\u0430.<\/p>\n<p>  <\/p>\n<p>\u0418\u0437\u043c\u0435\u043d\u0438\u043c \u043d\u0430\u0448\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 <\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">_CategorySlug.vue<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">&lt;template&gt;   &lt;div&gt;     &lt;h1&gt;{{ category.cName }}&lt;\/h1&gt;     &lt;p&gt;{{ category.cDesc }}&lt;\/p&gt;     &lt;div :class=&quot;$style.productList&quot;&gt;       &lt;div         v-for=&quot;product in category.products&quot;         :key=&quot;product.id&quot;       &gt;         &lt;ProductBrief :product=&quot;product&quot; \/&gt;       &lt;\/div&gt;     &lt;\/div&gt;   &lt;\/div&gt; &lt;\/template&gt;  &lt;script&gt; import ProductBrief from '~~\/components\/category\/ProductBrief' import { mapState } from 'vuex' export default {   components: {     ProductBrief   },   async asyncData ({ app, params, route, error }) {     try {       await app.store.dispatch('getCurrentCategory', { route })     } catch (err) {       console.log(err)       return error({         statusCode: 404,         message: '\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u0430 \u0438\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d'       })     }   },   computed: {     ...mapState({       category: 'currentCategory'     })   },   head () {     return {       title: this.category.cTitle,       meta: [         {           hid: 'description',           name: 'description',           content: this.category.cMetaDescription         }       ]     }   } } &lt;\/script&gt; &lt;style lang=&quot;scss&quot; module&gt; .productList {   display: flex;   flex-wrap: wrap;   justify-content: space-between; } &lt;\/style&gt; <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c \u0432\u0441\u0435 \u0442\u043e\u0432\u0430\u0440\u044b \u0432 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0432 \u0442\u0430\u043a\u043e\u043c \u0432\u0438\u0434\u0435.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/1y\/hb\/er\/1yhberk0a4gytfnejtvnovkpbxs.jpeg\"\/><\/p>\n<p>  <\/p>\n<p>\u0412\u0441\u0451 \u0445\u043e\u0440\u043e\u0448\u043e, \u043d\u043e \u0432 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 150 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0438 \u044d\u0442\u043e \u043d\u0430\u043f\u0440\u044f\u0433\u0430\u0435\u0442 \u043c\u043e\u0439 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432\u0441\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043b\u0435\u043d\u0438\u0432\u043e\u0439.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 plugins \u0434\u043e\u0431\u0430\u0432\u0438\u043c <\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">vue-lazy-load.js<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">import Vue from 'vue' import VueLazyload from 'vue-lazyload'  export default async (context, inject) =&gt; {   Vue.use(VueLazyload, {     preLoad: 0,     error: 'https:\/\/via.placeholder.com\/300',     \/\/ eslint-disable-next-line     loading: require(`${'~~\/assets\/svg\/download.svg'}`),     attempt: 3,     lazyComponent: true,     observer: true,     throttleWait: 500   }) } <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0412 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438 placeholder \u0432 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<br \/>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u0432 <strong>nuxt.config.js<\/strong><\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">  plugins: [     { src: '~~\/plugins\/vue-lazy-load.js' }   ],<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418 \u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430\u0448 <strong>img src<\/strong>\u043d\u0430<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">      &lt;img         v-lazy=&quot;product.image&quot;         :class=&quot;$style.image&quot;       \/&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0438\u043b\u044c <\/p>\n<p>  <\/p>\n<pre><code class=\"css\">.image {   width: 300px;   height: 300px; }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418 \u0432\u0443\u0430\u043b\u044f <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/v8\/vq\/td\/v8vqtdleoduzc3oeni0qfgqomdc.jpeg\"\/><\/p>\n<p>  <\/p>\n<p>\u0410\u043d\u0438\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u044b\u0439 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438 \u043b\u0435\u043d\u0438\u0432\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430. \u041c\u043e\u0439 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d \u0432\u044b\u0434\u043e\u0445\u043d\u0443\u043b.<\/p>\n<p>  <\/p>\n<h2 id=\"konec-pervoy-chasti\">\u041a\u043e\u043d\u0435\u0446 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438<\/h2>\n<p>  <\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u044f \u0445\u043e\u0447\u0443 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e \u0447\u0430\u0441\u0442\u044c. \u041a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 <a href=\"https:\/\/github.com\/AntonMoskalchenko\/habr-ecommerce-for-article\">Github<\/a><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0442\u044b\u043a\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0442\u0443\u0442.<\/p>\n<p>  <\/p>\n<p><a href=\"https:\/\/codesandbox.io\/s\/compassionate-mendel-neeez?fontsize=14&amp;hidenavigation=1&amp;theme=dark\"><img decoding=\"async\" src=\"https:\/\/codesandbox.io\/static\/img\/play-codesandbox.svg\" alt=\"Edit compassionate-mendel-neeez\"\/><\/a><\/p>\n<p>  <\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0432\u0441\u0435\u043c \u043a\u0442\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u044e. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Nuxt. \u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0438\u0437 \u0431\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0438, \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0442\u0434. \u0442\u043f, \u0430 \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0434\u0430\u043b\u0435\u043a \u043e\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  <\/p>\n<p>\u0412 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0438 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043d\u0430\u0440\u0430\u0449\u0438\u0432\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0441\u0430\u0439\u0442\u0430, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u043e\u043d \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u0433\u043e\u0434\u0438\u0442\u0441\u044f.<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/490496\/\"> https:\/\/habr.com\/ru\/post\/490496\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/490496\/\">\n<p>\u0421\u0442\u0430\u0442\u044c\u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430 \u043d\u0430 \u043b\u044e\u0434\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0436\u0435 \u0438\u043c\u0435\u044e\u0442 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u044b Vue, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u0441\u043d\u043e\u0432\u0430\u043d Nuxt, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0431\u0443\u0434\u0443 \u0437\u0430\u043e\u0441\u0442\u0440\u044f\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u043b\u044f Nuxt \u0432\u0435\u0449\u0430\u0445. \u041d\u043e \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u0441 \u043d\u0438\u043c\u0438, \u0442\u043e \u0441\u0442\u0430\u0442\u044c\u044f \u0434\u0430\u0441\u0442 \u043e\u0431\u0449\u0435\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 PWA Nuxt.<\/p>\n<p>  <\/p>\n<p>\u0412\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0447\u0435\u0440\u043f\u043d\u0443\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0445\u0430\u043a\u0438, \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0447\u0430\u0441\u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 Nuxt \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.<\/p>\n<p>  <\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043c\u0430\u0433\u0430\u0437\u0438\u043d:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u041a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0431\u044b\u0441\u0442\u0440\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/li>\n<li>\u041a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043b\u044e\u0431\u0438\u0442 Google (\u0438\u043b\u0438 \u043b\u044e\u0431\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a) \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f SEO.<br \/>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-299473","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/299473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=299473"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/299473\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=299473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=299473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=299473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}