{"id":228460,"date":"2022-10-15T18:30:00","date_gmt":"2022-10-15T15:30:00","guid":{"rendered":"https:\/\/wordpress.mediadoma.com\/?p=228460"},"modified":"2022-11-09T02:32:53","modified_gmt":"2022-11-08T23:32:53","slug":"rozshirennja-konfiguracii-wordpress-create-block-script-webpack","status":"publish","type":"post","link":"https:\/\/wordpress.mediadoma.com\/uk\/rozshirennja-konfiguracii-wordpress-create-block-script-webpack\/","title":{"rendered":"\u0420\u043e\u0437\u0448\u0438\u0440\u0435\u043d\u043d\u044f \u043a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u0457 WordPress Create Block Script webpack"},"content":{"rendered":"\n<p>\u0417\u0430\u0432\u0434\u044f\u043a\u0438 \u043e\u0444\u0456\u0446\u0456\u0439\u043d\u0456\u0439 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u0446\u0456 \u0432\u0456\u0434 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 WordPress (Gutenberg) \u0442\u0435\u043f\u0435\u0440 \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0448\u0432\u0438\u0434\u043a\u043e \u043f\u043e\u0447\u0430\u0442\u0438 \u0440\u043e\u0431\u043e\u0442\u0443 \u0437 \u043f\u043b\u0430\u0433\u0456\u043d\u043e\u043c \u0431\u043b\u043e\u043a\u0443 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e <a href=\"https:\/\/wholesomecode.ltd\/articles\/an-overview-of-the-wordpress-create-block-script\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">WordPress Create Block Script<\/a> (<code>@wordpress\/create-block<\/code>\u043f\u0430\u043a\u0435\u0442 npm).<\/p>\n<p><strong>\u0426\u044f \u0441\u0442\u0430\u0442\u0442\u044f \u0441\u0442\u043e\u0441\u0443\u0454\u0442\u044c\u0441\u044f \u0441\u0442\u0430\u0440\u0456\u0448\u043e\u0457 \u0432\u0435\u0440\u0441\u0456\u0457 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u044e \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0431\u043b\u043e\u043a\u0443<\/strong><\/p>\n<p>\u0425\u043e\u0447\u0430 \u0446\u044e \u0442\u0435\u043e\u0440\u0456\u044e \u0432\u0441\u0435 \u0449\u0435 \u043c\u043e\u0436\u043d\u0430 \u0437\u0430\u0441\u0442\u043e\u0441\u0443\u0432\u0430\u0442\u0438, \u0434\u0435\u044f\u043a\u0430 \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u044f \u0432 \u0446\u0456\u0439 \u0441\u0442\u0430\u0442\u0442\u0456 \u043c\u043e\u0436\u0435 \u0431\u0443\u0442\u0438 \u043d\u0435\u0441\u0443\u043c\u0456\u0441\u043d\u043e\u044e \u0437 \u043e\u0441\u0442\u0430\u043d\u043d\u0456\u043c \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u0454\u043c \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0431\u043b\u043e\u043a\u0443. \u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 <a href=\"https:\/\/wholesomecode.ltd\/guides\/creating-plugin-wordpress-gutenberg\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u043f\u0435\u0440\u0435\u0433\u043b\u044f\u043d\u0443\u0442\u0438 \u043d\u0430\u0448 \u043e\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u041f\u043e\u0441\u0456\u0431\u043d\u0438\u043a \u0437\u0456 \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u044e \u0431\u043b\u043e\u043a\u0443 \u0442\u0443\u0442<\/a>.<\/p>\n<p>\u0423 \u043d\u0430\u0441 \u0442\u0430\u043a\u043e\u0436 \u0454 \u043e\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u043f\u043e\u0441\u0456\u0431\u043d\u0438\u043a \u0449\u043e\u0434\u043e <a href=\"https:\/\/wholesomecode.ltd\/guides\/entry-points-wordpress-create-block-script\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u0434\u043e\u0434\u0430\u0432\u0430\u043d\u043d\u044f \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u0438\u0445 \u0442\u043e\u0447\u043e\u043a \u0432\u0445\u043e\u0434\u0443 \u0434\u043e webpack<\/a>.<\/p>\n<p>\u0423 \u0446\u0456\u0439 \u0441\u0442\u0430\u0442\u0442\u0456 \u043c\u0438 \u0434\u043e\u0441\u043b\u0456\u0434\u0436\u0443\u0454\u043c\u043e, \u044f\u043a \u043c\u043e\u0436\u043d\u0430 \u0434\u043e\u0434\u0430\u0442\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u044e\u0432\u0430\u043d\u0438\u0439 <code>webpack.config<\/code>, \u0449\u043e\u0431 \u0440\u043e\u0437\u0448\u0438\u0440\u0438\u0442\u0438 <code>wp-scripts<\/code>\u0444\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0430\u043b\u044c\u043d\u0456\u0441\u0442\u044c \u043a\u043e\u043c\u043f\u0456\u043b\u044f\u0446\u0456\u0457 \u0431\u043b\u043e\u043a\u0443, \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u043e\u043c.<\/p>\n<p>\u0417\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0446\u044c\u043e\u0433\u043e \u043c\u0438 \u043c\u043e\u0436\u0435\u043c\u043e \u0440\u043e\u0437\u0448\u0438\u0440\u0438\u0442\u0438 <code>npm start<\/code>\u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u0438\u0445 \u0437\u0430\u0432\u0434\u0430\u043d\u044c. \u0423 \u0446\u044c\u043e\u043c\u0443 \u0432\u0438\u043f\u0430\u0434\u043a\u0443 \u043c\u0438 \u0437\u0431\u0438\u0440\u0430\u0454\u043c\u043e\u0441\u044f \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u0442\u0438 \u043f\u043b\u0430\u0433\u0456\u043d \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u0456\u043b\u044f\u0446\u0456\u0457 Sass (<code>sass<\/code>, <code>scss<\/code>) \u0443 <code>css<\/code>.<\/p>\n<p>\u041c\u0438 \u0441\u043a\u043e\u043c\u043f\u0456\u043b\u044e\u0454\u043c\u043e Sass \u0456\u0437 <code>\/src<\/code>\u043f\u0430\u043f\u043a\u0438 \u0443 \u0444\u0430\u0439\u043b\u0438 <code>style.css<\/code>\u0442\u0430 <code>editor.css<\/code>\u0432 \u043a\u043e\u0440\u0435\u043d\u0456 \u043f\u043b\u0430\u0433\u0456\u043d\u0430.<\/p>\n<h2>\u0421\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u043d\u0430\u0448\u0456 \u0444\u0430\u0439\u043b\u0438 Sass<\/h2>\n<p>\u041f\u0435\u0440\u0448\u0435, \u0449\u043e \u043c\u0438 \u0437\u0431\u0438\u0440\u0430\u0454\u043c\u043e\u0441\u044f \u0437\u0440\u043e\u0431\u0438\u0442\u0438, \u0446\u0435 \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u043d\u043e\u0432\u0443 \u043f\u0430\u043f\u043a\u0443 \u0437\u0430 \u0430\u0434\u0440\u0435\u0441\u043e\u044e <code>\/src\/scss<\/code>. \u0421\u044e\u0434\u0438 \u043c\u0438 \u0434\u043e\u0434\u0430\u043c\u043e \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0438:<\/p>\n<ul>\n<li><code>\/src\/scss\/editor.scss<\/code><\/li>\n<li><code>\/src\/scss\/style.scss<\/code><\/li>\n<\/ul>\n<p>\u041c\u0438 \u0441\u043a\u043e\u043f\u0456\u044e\u0454\u043c\u043e \u0444\u0430\u0439\u043b\u0438 <code>css<\/code>\u0437 <code>\/editor.css<\/code>\u0456 <code>\/style.css<\/code>\u0432 \u043d\u043e\u0432\u043e\u0441\u0442\u0432\u043e\u0440\u0435\u043d\u0456 \u0444\u0430\u0439\u043b\u0438.<\/p>\n<p>\u041f\u043e\u0442\u0456\u043c \u043c\u0438 \u0432\u0438\u0434\u0430\u043b\u0438\u043c\u043e \u0444\u0430\u0439\u043b\u0438 <code>\/editor.css<\/code>\u0442\u0430 .<code>\/style.css<\/code><\/p>\n<p>\u0424\u0430\u0439\u043b\u0438 SCSS \u0456 \u043d\u043e\u0432\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043f\u0430\u043f\u043e\u043a.<\/p>\n<h3>\u0406\u043c\u043f\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438 Sass \u0432<code>\/src\/index.js<\/code><\/h3>\n<p>\u0423 \u0432\u0435\u0440\u0445\u043d\u0456\u0439 \u0447\u0430\u0441\u0442\u0438\u043d\u0456 <code>\/src\/index.js<\/code>\u0434\u043e\u0434\u0430\u0439\u0442\u0435 \u0442\u0430\u043a\u0456 \u0442\u0432\u0435\u0440\u0434\u0436\u0435\u043d\u043d\u044f:<\/p>\n<pre><code>import '.\/scss\/editor.scss';\nimport '.\/scss\/style.scss';\n<\/code><\/pre>\n<p>\u0426\u0435 \u0434\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u044c webpack \u0437\u0430\u0431\u0440\u0430\u0442\u0438 <code>.scss<\/code>\u0444\u0430\u0439\u043b\u0438, \u0449\u043e\u0431 \u0457\u0445 \u043c\u043e\u0436\u043d\u0430 \u0431\u0443\u043b\u043e \u043e\u0431\u0440\u043e\u0431\u0438\u0442\u0438.<\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u0447\u0438\u043d\u043e\u043c, \u0456\u043c\u043f\u043e\u0440\u0442\u0443\u044e\u0447\u0438 Sass \u0443 \u0432\u0435\u0440\u0445\u043d\u0456\u0439 \u0447\u0430\u0441\u0442\u0438\u043d\u0456 \u043d\u0430\u0448\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0443, \u043c\u0438 \u0437\u043c\u043e\u0436\u0435\u043c\u043e <a href=\"https:\/\/wholesomecode.ltd\/compiling-sass-for-multiple-blocks-with-the-webpack-config\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u0441\u043a\u043e\u043c\u043f\u0456\u043b\u044e\u0432\u0430\u0442\u0438 Sass \u0434\u043b\u044f \u043a\u0456\u043b\u044c\u043a\u043e\u0445 \u0431\u043b\u043e\u043a\u0456\u0432 \u0432 \u043e\u0434\u043d\u043e\u043c\u0443 \u043f\u043b\u0430\u0433\u0456\u043d\u0456 \u0432 \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b<\/a>. \u0423 \u0446\u044c\u043e\u043c\u0443 \u0432\u0438\u043f\u0430\u0434\u043a\u0443 \u0432\u0456\u043d \u0441\u043a\u043e\u043c\u043f\u0456\u043b\u044e\u0454 Sass \u0432 \u043e\u0434\u0438\u043d <code>\/editor.css<\/code>\u0456 <code>\/style.css<\/code>\u0444\u0430\u0439\u043b\u0438 \u0434\u043b\u044f \u0432\u0441\u044c\u043e\u0433\u043e \u043f\u043b\u0430\u0433\u0456\u043d\u0430.<\/p>\n<h2>\u041d\u0430\u043b\u0430\u0448\u0442\u0443\u0439\u0442\u0435<code>webpack.config<\/code><\/h2>\n<p>\u0421\u0442\u0432\u043e\u0440\u0456\u0442\u044c \u043d\u043e\u0432\u0438\u0439 \u0444\u0430\u0439\u043b \u0443 \u043a\u043e\u0440\u0435\u043d\u0456 \u043f\u043b\u0430\u0433\u0456\u043d\u0430 \u043f\u0456\u0434 \u043d\u0430\u0437\u0432\u043e\u044e <code>\/webpack.config.js<\/code>. \u0421\u043a\u043e\u043f\u0456\u044e\u0439\u0442\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u043a\u043e\u0434 \u0443 \u0446\u0435\u0439 \u0444\u0430\u0439\u043b:<\/p>\n<pre><code>const defaultConfig = require( '@wordpress\/scripts\/config\/webpack.config' );\n\nmodule.exports = {\n    ...defaultConfig,\n    module: {\n        ...defaultConfig.module,\n        rules: [\n            ...defaultConfig.module.rules,\n        ]\n    }\n};\n<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440 \u0443 \u0432\u0430\u0448\u043e\u043c\u0443 \u0442\u0435\u0440\u043c\u0456\u043d\u0430\u043b\u0456 \u0432\u0432\u0435\u0434\u0456\u0442\u044c \u0442\u0430\u043a\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <code>cd<\/code>\u0432 \u043a\u043e\u0440\u0435\u043d\u0435\u0432\u0456\u0439 \u043f\u0430\u043f\u0446\u0456 \u043f\u043b\u0430\u0433\u0456\u043d\u0430:<\/p>\n<p>\u041f\u043b\u0430\u0433\u0456\u043d \u043c\u0430\u0454 \u0441\u043a\u043e\u043c\u043f\u0456\u043b\u044e\u0432\u0430\u0442\u0438 JavaScript \u0443 \u043f\u0430\u043f\u043a\u0443 \u0437\u0431\u0456\u0440\u043a\u0438 \u044f\u043a \u0437\u0430\u0437\u0432\u0438\u0447\u0430\u0439.<\/p>\n<h3>\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u043f\u0430\u043a\u0435\u0442\u0430 \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u0456\u043b\u044f\u0446\u0456\u0457 Sass<\/h3>\n<p>\u041c\u0438 \u0437\u0431\u0438\u0440\u0430\u0454\u043c\u043e\u0441\u044f \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 <a href=\"https:\/\/www.npmjs.com\/package\/mini-css-extract-plugin\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\"><code>mini-css-extract-plugin<\/code>\u043f\u0430\u043a\u0435\u0442 npm,<\/a> \u0449\u043e\u0431 \u0441\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u0442\u0438 <code>.css<\/code>\u0444\u0430\u0439\u043b\u0438 \u0437 \u043d\u0430\u0448\u043e\u0433\u043e Sass, \u0434\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u043d\u0430\u043c \u0442\u0430\u043a\u043e\u0436 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u0430 \u043f\u0430\u0440\u0430 \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u0438\u0445 \u043f\u0430\u043a\u0435\u0442\u0456\u0432 \u0434\u043b\u044f \u043e\u0431\u0440\u043e\u0431\u043a\u0438 <code>.scss<\/code>\u0444\u0430\u0439\u043b\u0456\u0432 \u0443 CSS.<\/p>\n<p>\u041c\u0438 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u043e <a href=\"https:\/\/www.npmjs.com\/package\/sass-loader\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\"><code>scss-loader<\/code>\u043f\u0430\u043a\u0435\u0442 npm<\/a>, \u0449\u043e\u0431 \u043c\u0438 \u043c\u043e\u0433\u043b\u0438 \u0441\u043a\u043e\u043c\u043f\u0456\u043b\u044e\u0432\u0430\u0442\u0438 CSS \u0443 Sass. \u0446\u0435 \u0437\u0430\u043b\u0435\u0436\u0438\u0442\u044c \u0432\u0456\u0434 <code>node-scss<\/code>.<\/p>\n<p>\u041c\u0438 \u0442\u0430\u043a\u043e\u0436 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u043e <a href=\"https:\/\/www.npmjs.com\/package\/css-loader\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\"><code>css-loader<\/code>\u043f\u0430\u043a\u0435\u0442 npm,<\/a> \u0449\u043e\u0431 \u0434\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u0438 \u043d\u0430\u043c \u043e\u0431\u0440\u043e\u0431\u043b\u044f\u0442\u0438 <code>@import<\/code>\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0438 \u0432 CSS.<\/p>\n<pre><code>npm install mini-css-extract-plugin css-loader sass-loader node-sass --save-dev\n<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440 \u0440\u043e\u0437\u0448\u0438\u0440\u0442\u0435 <code>\/webpack.config.js<\/code>\u0444\u0430\u0439\u043b, \u0449\u043e\u0431 \u0432\u0456\u043d \u0432\u0438\u0433\u043b\u044f\u0434\u0430\u0432 \u0442\u0430\u043a:<\/p>\n<pre><code>const defaultConfig = require( '@wordpress\/scripts\/config\/webpack.config' );\nconst MiniCssExtractPlugin = require( 'mini-css-extract-plugin' );\n\nmodule.exports = {\n    ...defaultConfig,\n    module: {\n        ...defaultConfig.module,\n        rules: [\n            ...defaultConfig.module.rules,\n            {\n                test: \/.s[ac]ss$\/i,\n                use: [\n                    { loader: MiniCssExtractPlugin.loader },\n                    { loader: 'css-loader' },\n                    { loader: 'sass-loader' },\n                ],\n            },\n        ],\n    },\n    plugins: [\n        ...defaultConfig.plugins,\n        new MiniCssExtractPlugin( {\n            filename: '..\/[name].css',\n        } ),\n    ],\n};\n<\/code><\/pre>\n<p>\u0423 \u0440\u044f\u0434\u043a\u0443 2 \u043c\u0438 \u0456\u043c\u043f\u043e\u0440\u0442\u0443\u0432\u0430\u043b\u0438 <code>mini-css-extract-plugin<\/code>, \u0443 \u0440\u044f\u0434\u043a\u0443 20 \u043c\u0438 \u043e\u0433\u043e\u043b\u043e\u0441\u0438\u043b\u0438 \u0439\u043e\u0433\u043e \u044f\u043a \u043f\u043b\u0430\u0433\u0456\u043d \u0456 \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 <code>..\/[name].css<\/code>\u044f\u043a <code>filename<\/code>. \u0426\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0454, \u0449\u043e \u0441\u043a\u043e\u043c\u043f\u0456\u043b\u044c\u043e\u0432\u0430\u043d\u0438\u0439 \u0444\u0430\u0439\u043b \u0431\u0443\u0434\u0435 \u0434\u043e\u0434\u0430\u043d\u043e \u0434\u043e \u043a\u043e\u0440\u0435\u043d\u0435\u0432\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0443 \u043f\u043b\u0430\u0433\u0456\u043d\u0430.<\/p>\n<p>\u0423 \u0440\u044f\u0434\u043a\u0443 10 \u043c\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 \u043e\u0431&#8217;\u0454\u043a\u0442, \u044f\u043a\u0438\u0439 \u043c\u0430\u0454 <code>test<\/code>\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u044f\u043a\u0438\u0439 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u0438\u0439 \u0432\u0438\u0440\u0430\u0437, \u0449\u043e\u0431 \u0432\u043a\u0430\u0437\u0430\u0442\u0438 \u0442\u0438\u043f \u0444\u0430\u0439\u043b\u0443, \u044f\u043a\u0438\u0439 \u043c\u0438 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u044f\u0454\u043c\u043e, \u0456 <code>use<\/code>\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440.<\/p>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>use<\/code>\u043c\u0456\u0441\u0442\u0438\u0442\u044c \u043c\u0430\u0441\u0438\u0432 \u0443\u0441\u0456\u0445 \u043f\u043b\u0430\u0433\u0456\u043d\u0456\u0432, \u044f\u043a\u0456 \u043c\u0438 \u0437\u0431\u0438\u0440\u0430\u0454\u043c\u043e\u0441\u044f \u0437\u0430\u0441\u0442\u043e\u0441\u0443\u0432\u0430\u0442\u0438 \u0434\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0443. \u0412\u0456\u043d \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0454 \u043f\u043b\u0430\u0433\u0456\u043d\u0438 \u0437\u043d\u0438\u0437\u0443 \u0441\u043f\u0438\u0441\u043a\u0443, \u0437\u0430\u043a\u0456\u043d\u0447\u0443\u044e\u0447\u0438 \u0432\u0433\u043e\u0440\u0456.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440, \u044f\u043a\u0449\u043e \u043c\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c\u043e <code>npm start<\/code>, \u0432\u0456\u043d \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u044c <code>.css<\/code>\u0444\u0430\u0439\u043b \u0443 \u043a\u043e\u0440\u0435\u043d\u0435\u0432\u0456\u0439 \u043f\u0430\u043f\u0446\u0456 \u043f\u043b\u0430\u0433\u0456\u043d\u0430.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/wordpress.mediadoma.com\/wp-content\/uploads\/2022\/01\/post-169062-61e7fcc0ce2c4.png\" alt=\"\u0420\u043e\u0437\u0448\u0438\u0440\u0435\u043d\u043d\u044f \u043a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u0457 WordPress Create Block Script webpack\" \/>\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0444\u0430\u0439\u043b\u0443 CSS.<\/p>\n<p>\u0414\u0438\u0432\u043b\u044f\u0447\u0438\u0441\u044c \u043d\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443, \u043c\u0438 \u043c\u0430\u0454\u043c\u043e \u0434\u0432\u0430 \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u0438\u0445 \u0444\u0430\u0439\u043b\u0438:<\/p>\n<ul>\n<li><code>\/index.css<\/code><\/li>\n<li><code>\/index.css.map<\/code><\/li>\n<\/ul>\n<p>(\u041c\u0438 \u0442\u0430\u043a\u043e\u0436 \u043e\u0442\u0440\u0438\u043c\u0443\u0454\u043c\u043e \u043a\u0456\u043b\u044c\u043a\u0430 \u0444\u0430\u0439\u043b\u0456\u0432 JavaScript \u0443 <code>\/build<\/code>\u043f\u0430\u043f\u0446\u0456, \u0430\u043b\u0435 \u044f \u043f\u043e\u044f\u0441\u043d\u044e, \u044f\u043a \u0437 \u043d\u0438\u043c\u0438 \u043f\u0440\u0430\u0446\u044e\u0432\u0430\u0442\u0438 \u043f\u0456\u0437\u043d\u0456\u0448\u0435).<\/p>\n<p>\u0424\u0430\u0439\u043b <code>.map<\/code>\u2014 \u0446\u0435 \u0432\u043a\u0430\u0437\u0456\u0432\u043d\u0438\u043a, \u044f\u043a\u0438\u0439 \u0432\u043a\u0430\u0437\u0443\u0454 \u0432\u0430\u0448\u0456\u0439 \u043a\u043e\u043d\u0441\u043e\u043b\u0456 JavaScript, \u0443 \u044f\u043a\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0456 \u0441\u043f\u043e\u0447\u0430\u0442\u043a\u0443 \u0431\u0443\u043b\u043e \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043e CSS \u0430\u0431\u043e Sass, \u0456 \u0434\u043e\u043f\u043e\u043c\u0430\u0433\u0430\u0454 \u0437 \u043d\u0430\u043b\u0430\u0433\u043e\u0434\u0436\u0435\u043d\u043d\u044f\u043c.<\/p>\n<p>\u0412\u0438\u0432\u0447\u0430\u044e\u0447\u0438 <code>\/index.css<\/code>\u0444\u0430\u0439\u043b, \u0432\u0456\u043d \u043c\u0456\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u0434 \u0437 \u0444\u0430\u0439\u043b\u0456\u0432 <code>\/src\/scss\/editor.scss<\/code>\u0456 .<code>\/src\/scss\/style.scss<\/code><\/p>\n<p>\u0426\u0435 \u043d\u0435 \u0442\u0435, \u0447\u043e\u0433\u043e \u043c\u0438 \u0445\u043e\u0447\u0435\u043c\u043e, \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u0444\u0430\u0439\u043b\u0438 \u0441\u0442\u0438\u043b\u0456\u0432 \u0456 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0456\u0432 \u0434\u043e\u0434\u0430\u044e\u0442\u044c\u0441\u044f \u043e\u043a\u0440\u0435\u043c\u043e \u0434\u043e php-\u0444\u0430\u0439\u043b\u0443 \u043d\u0430\u0448\u0438\u0445 \u043f\u043b\u0430\u0433\u0456\u043d\u0456\u0432.<\/p>\n<h3>\u0420\u043e\u0437\u0431\u0438\u0442\u0442\u044f \u0444\u0430\u0439\u043b\u0443 CSS<\/h3>\n<p>\u0429\u043e\u0431 \u0440\u043e\u0437\u0434\u0456\u043b\u0438\u0442\u0438 \u0446\u0435\u0439 <code>\/index.css<\/code>\u0444\u0430\u0439\u043b, \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0441\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u0442\u0438\u0441\u044f <code>optimization.splitChunks<\/code>\u043e\u0431\u2019\u0454\u043a\u0442\u043e\u043c webpack 4. \u0429\u043e\u0431 \u0434\u0456\u0437\u043d\u0430\u0442\u0438\u0441\u044f \u0431\u0456\u043b\u044c\u0448\u0435 \u043f\u0440\u043e \u0439\u043e\u0433\u043e \u043a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u044e, \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0439\u0442\u0435 <a href=\"https:\/\/webpack.js.org\/plugins\/split-chunks-plugin\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0456\u0457 splitChunks<\/a>.<\/p>\n<p>\u0414\u043e\u0434\u0430\u0439\u0442\u0435 \u0434\u043e \u0441\u0432\u043e\u0433\u043e <code>\/webpack.config.js<\/code>\u0444\u0430\u0439\u043b\u0443 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0435:<\/p>\n<pre><code>const defaultConfig = require( '@wordpress\/scripts\/config\/webpack.config' );\nconst MiniCssExtractPlugin = require( 'mini-css-extract-plugin' );\n\nmodule.exports = {\n    ...defaultConfig,\n    module: {\n        ...defaultConfig.module,\n        rules: [\n            ...defaultConfig.module.rules,\n            {\n                test: \/.s[ac]ss$\/i,\n                use: [\n                    { loader: MiniCssExtractPlugin.loader },\n                    { loader: 'css-loader' },\n                    { loader: 'sass-loader' },\n                ],\n            },\n        ],\n    },\n    optimization: {\n        ...defaultConfig.optimization,\n        splitChunks: {\n            cacheGroups: {\n                  default: false,\n                editor: {\n                    chunks: 'all',\n                      enforce: true,\n                    name: 'editor',\n                    test: \/editor.s[ac]ss$\/i,\n                },\n                style: {\n                    chunks: 'all',\n                      enforce: true,\n                    name: 'style',\n                    test: \/style.s[ac]ss$\/i,\n                },\n            },\n        },\n    },\n    plugins: [\n        ...defaultConfig.plugins,\n        new MiniCssExtractPlugin( {\n            filename: '..\/[name].css',\n        } ),\n    ],\n};\n<\/code><\/pre>\n<p>\u0412\u0438\u0434\u0430\u043b\u0456\u0442\u044c \u0440\u0430\u043d\u0456\u0448\u0435 \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u0456 \u0444\u0430\u0439\u043b\u0438 \u0442\u0430 \u043f\u0430\u043f\u043a\u0443 \u0437\u0431\u0456\u0440\u043a\u0438 \u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c <code>npm start<\/code>.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440 \u043c\u0438 \u043e\u0442\u0440\u0438\u043c\u0443\u0454\u043c\u043e \u0442\u0430\u043a\u0456 \u0444\u0430\u0439\u043b\u0438:<\/p>\n<ul>\n<li><code>\/build\/editor.js<\/code><\/li>\n<li><code>\/build\/editor.js.map<\/code><\/li>\n<li><code>\/build\/style.js<\/code><\/li>\n<li><code>\/build\/style.js.map<\/code><\/li>\n<li><code>\/editor.css<\/code><\/li>\n<li><code>\/editor.css.map<\/code><\/li>\n<li><code>\/style.css<\/code><\/li>\n<li><code>\/style.css.map<\/code><\/li>\n<\/ul>\n<p>\u0414\u0438\u0432\u043b\u044f\u0447\u0438\u0441\u044c \u043d\u0430 \u0442\u0435 <code>\/editor.css<\/code>, <code>\/style.css<\/code>\u0432\u043e\u043d\u0438 \u0431\u0443\u043b\u0438 \u0437\u0433\u0435\u043d\u0435\u0440\u043e\u0432\u0430\u043d\u0456 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0442\u0430 \u043c\u0456\u0441\u0442\u044f\u0442\u044c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u0438\u0439 \u043a\u043e\u0434!<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/wordpress.mediadoma.com\/wp-content\/uploads\/2022\/01\/post-169062-61e7fcc1d8349.png\" alt=\"\u0420\u043e\u0437\u0448\u0438\u0440\u0435\u043d\u043d\u044f \u043a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u0457 WordPress Create Block Script webpack\" \/>\u0421\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0444\u0430\u0439\u043b\u0456\u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 \u0442\u0430 \u0441\u0442\u0438\u043b\u0456\u0432 CSS.<\/p>\n<p>\u0424\u0430\u0439\u043b\u0438 \u0432 <code>\/build<\/code>\u043f\u0430\u043f\u0446\u0456 \u043d\u0435 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u0456 \u0434\u043b\u044f \u043d\u0430\u0448\u043e\u0433\u043e \u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f, \u0434\u0430\u043b\u0456 \u044f \u0434\u043e\u0441\u043b\u0456\u0434\u0436\u0443, \u044f\u043a \u0457\u0445 \u0432\u0438\u0434\u0430\u043b\u0438\u0442\u0438.<\/p>\n<h3>\u0412\u0438\u0434\u0430\u043b\u0435\u043d\u043d\u044f \u043d\u0435\u043f\u043e\u0442\u0440\u0456\u0431\u043d\u0438\u0445 \u0444\u0430\u0439\u043b\u0456\u0432<\/h3>\n<p>\u0414\u043b\u044f \u0432\u0438\u0434\u0430\u043b\u0435\u043d\u043d\u044f \u043d\u0435\u043f\u043e\u0442\u0440\u0456\u0431\u043d\u0438\u0445 \u0444\u0430\u0439\u043b\u0456\u0432 \u043c\u0438 \u0431\u0443\u0434\u0435\u043c\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 <a href=\"https:\/\/www.npmjs.com\/package\/ignore-emit-webpack-plugin\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\"><code>ignore-emit-webpack-plugin<\/code>\u043f\u0430\u043a\u0435\u0442 npm<\/a>.<\/p>\n<p>\u0426\u0435\u0439 \u043f\u043b\u0430\u0433\u0456\u043d \u043d\u0435 \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u0454 webpack \u0432\u0438\u0432\u043e\u0434\u0438\u0442\u0438 (\u0430\u0431\u043e \u00ab\u0432\u0438\u0434\u0456\u043b\u044f\u0442\u0438\u00bb \u043f\u0435\u0432\u043d\u0456 \u0444\u0430\u0439\u043b\u0438).<\/p>\n<p>\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0456\u0442\u044c \u043f\u0430\u043a\u0435\u0442 npm \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0442\u0435\u0440\u043c\u0456\u043d\u0430\u043b\u0443:<\/p>\n<pre><code>npm install ignore-emit-webpack-plugin --save-dev\n<\/code><\/pre>\n<p>\u0417\u043c\u0456\u043d\u0456\u0442\u044c \u0441\u0432\u0456\u0439 <code>\/webpack.config.js<\/code>\u0444\u0430\u0439\u043b, \u0449\u043e\u0431 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0438 \u043a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u044e \u0434\u043b\u044f \u043f\u043b\u0430\u0433\u0456\u043d\u0430 Ignore Emit webpack.<\/p>\n<pre><code>const defaultConfig = require( '@wordpress\/scripts\/config\/webpack.config' );\nconst IgnoreEmitWebPackPlugin = require( 'ignore-emit-webpack-plugin' );\nconst MiniCssExtractPlugin = require( 'mini-css-extract-plugin' );\n\nmodule.exports = {\n    ...defaultConfig,\n    module: {\n        ...defaultConfig.module,\n        rules: [\n            ...defaultConfig.module.rules,\n            {\n                test: \/.s[ac]ss$\/i,\n                use: [\n                    { loader: MiniCssExtractPlugin.loader },\n                    { loader: 'css-loader' },\n                    { loader: 'sass-loader' },\n                ],\n            },\n        ],\n    },\n    optimization: {\n        ...defaultConfig.optimization,\n        splitChunks: {\n            cacheGroups: {\n                  default: false,\n                editor: {\n                    chunks: 'all',\n                      enforce: true,\n                    name: 'editor',\n                    test: \/editor.s[ac]ss$\/i,\n                },\n                style: {\n                    chunks: 'all',\n                      enforce: true,\n                    name: 'style',\n                    test: \/style.s[ac]ss$\/i,\n                },\n            },\n        },\n    },\n    plugins: [\n        ...defaultConfig.plugins,\n        new IgnoreEmitWebPackPlugin( [ 'editor.js', 'style.js' ] ),\n        new MiniCssExtractPlugin( {\n            filename: '..\/[name].css',\n        } ),\n    ],\n};\n<\/code><\/pre>\n<p>\u0417\u0432\u0435\u0440\u043d\u0456\u0442\u044c \u0443\u0432\u0430\u0433\u0443 \u043d\u0430 \u043d\u043e\u0432\u0456 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f \u0432 \u0440\u044f\u0434\u043a\u0443 2, \u044f\u043a\u0438\u0439 \u043c\u0456\u0441\u0442\u0438\u0442\u044c \u043f\u043b\u0430\u0433\u0456\u043d Ignore Emit, \u0456 \u0432 \u0440\u044f\u0434\u043a\u0443 41, \u044f\u043a\u0438\u0439 \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u044f\u0454 \u043f\u043b\u0430\u0433\u0456\u043d\u0443, \u044f\u043a\u0456 \u0444\u0430\u0439\u043b\u0438 \u043d\u0435 \u0432\u0438\u0434\u0430\u0432\u0430\u0442\u0438.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440, \u043a\u043e\u043b\u0438 \u043c\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0454\u043c\u043e <code>npm start<\/code>(\u043f\u0456\u0441\u043b\u044f \u0432\u0438\u0434\u0430\u043b\u0435\u043d\u043d\u044f <code>\/build<\/code>\u043f\u0430\u043f\u043a\u0438) <code>\/build\/editor.js<\/code>, <code>\/build\/editor.js.map<\/code>, <code>\/build\/style.js<\/code>\u0456 <code>\/build\/style.js.map<\/code>\u0431\u0456\u043b\u044c\u0448\u0435 \u043d\u0435 \u0441\u0442\u0432\u043e\u0440\u044e\u044e\u0442\u044c\u0441\u044f.<\/p>\n<h3>\u041b\u0438\u0448\u0435 \u0432\u0438\u0440\u043e\u0431\u043d\u0438\u0446\u0442\u0432\u043e<\/h3>\n<p>\u042f\u043a\u0449\u043e \u043c\u0438 \u0445\u043e\u0447\u0435\u043c\u043e \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u043b\u0438\u0448\u0435 \u0432\u0438\u0445\u0456\u0434 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0443 \u0442\u0430 \u0432\u0438\u043a\u043b\u044e\u0447\u0438\u0442\u0438 <code>.map<\/code>\u0444\u0430\u0439\u043b\u0438, \u043c\u0438 \u043c\u043e\u0436\u0435\u043c\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u0438 <code>devtool: false<\/code>\u044f\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0443 \u043d\u0430\u0448 <code>module.exports<\/code>\u043e\u0431\u2019\u0454\u043a\u0442, \u0456 \u0446\u0435 \u0437\u0430\u043f\u043e\u0431\u0456\u0436\u0438\u0442\u044c <code>.map<\/code>\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0456\u0457 \u0444\u0430\u0439\u043b\u0456\u0432.<\/p>\n<p>\u041e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u043c\u0438 \u0445\u043e\u0447\u0435\u043c\u043e, \u0449\u043e\u0431 \u0446\u0456 \u0444\u0430\u0439\u043b\u0438 \u0431\u0443\u043b\u0438 \u0432\u0438\u043a\u043b\u044e\u0447\u0435\u043d\u0456 \u043b\u0438\u0448\u0435 \u043d\u0430 \u0440\u043e\u0431\u043e\u0447\u043e\u043c\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u0456, \u043c\u0438 \u043c\u043e\u0436\u0435\u043c\u043e \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 <code>process.env.NODE_ENV<\/code>\u043d\u0430\u043b\u0430\u0448\u0442\u0443\u0432\u0430\u043d\u043d\u044f, \u0449\u043e\u0431 \u043f\u043e\u0431\u0430\u0447\u0438\u0442\u0438, \u044f\u043a\u0435 \u043d\u0430\u043b\u0430\u0448\u0442\u043e\u0432\u0430\u043d\u043e \u043d\u0430\u0448\u0435 \u043f\u043e\u0442\u043e\u0447\u043d\u0435 \u0441\u0435\u0440\u0435\u0434\u043e\u0432\u0438\u0449\u0435, \u0456 \u043f\u0435\u0440\u0435\u0439\u0442\u0438, <code>devtool: false<\/code>\u044f\u043a\u0449\u043e \u0441\u0435\u0440\u0435\u0434\u043e\u0432\u0438\u0449\u0435 \u043d\u0430\u043b\u0430\u0448\u0442\u043e\u0432\u0430\u043d\u043e \u043d\u0430 \u0440\u043e\u0431\u043e\u0447\u0435.<\/p>\n<p>\u0414\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u0434\u043e\u0434\u0430\u0439\u0442\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0435 \u0434\u043e \u043f\u043e\u0447\u0430\u0442\u043a\u0443 \u043d\u0430\u0448\u043e\u0433\u043e <code>\/webpack.config.js<\/code>\u0444\u0430\u0439\u043b\u0443:<\/p>\n<pre><code>const production = 'development' !== process.env.NODE_ENV;\n<\/code><\/pre>\n<p>\u041f\u043e\u0442\u0456\u043c \u0434\u043e\u0434\u0430\u0439\u0442\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0435 \u0434\u043e \u043a\u0456\u043d\u0446\u044f \u0444\u0430\u0439\u043b\u0443:<\/p>\n<pre><code>if (production) {\n    module.exports.devtool = false;\n}\n<\/code><\/pre>\n<p>\u042f\u043a\u0449\u043e <code>npm start<\/code>\u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u0438\u043a\u043e\u043d\u0443\u0454\u0442\u044c\u0441\u044f, \u0430 \u0441\u0435\u0440\u0435\u0434\u043e\u0432\u0438\u0449\u0435 \u0432\u0443\u0437\u043b\u0430 \u043d\u0435 \u043d\u0430\u043b\u0430\u0448\u0442\u043e\u0432\u0430\u043d\u043e \u043d\u0430 \u0432\u0438\u0440\u043e\u0431\u043d\u0438\u0446\u0442\u0432\u043e, <code>.map<\/code>\u0444\u0430\u0439\u043b\u0438 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442\u044c \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u0456.<\/p>\n<p><div id=\"PostUnique_PostSource\" style=\"padding-top: 50px\">\u0414\u0436\u0435\u0440\u0435\u043b\u043e \u0437\u0430\u043f\u0438\u0441\u0443:  <a target=\"_blank\" rel=\"noopener nofollow\" href=\"\/\/wholesomecode.ltd\" class=\"external external_icon\">wholesomecode.ltd<\/a><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0432\u0434\u044f\u043a\u0438 \u043e\u0444\u0456\u0446\u0456\u0439\u043d\u0456\u0439 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u0446\u0456 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 WordPress (Gutenberg) \u0442\u0435\u043f\u0435\u0440 \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0448\u0432\u0438\u0434\u043a\u043e \u043f\u043e\u0447\u0430\u0442\u0438 \u0440\u043e\u0431\u043e\u0442\u0443 \u0437 \u043f\u043b\u0430\u0433\u0456\u043d\u043e\u043c \u0431\u043b\u043e\u043a\u0443 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u044e \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0431\u043b\u043e\u043a\u0443 WordPress (@wordpress\/cre&#8230;<\/p>\n","protected":false},"author":1,"featured_media":221243,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_wp_rev_ctl_limit":""},"categories":[869,902,849,923,725],"tags":[1174],"class_list":["post-228460","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-10","category-kod-3","category-pidruchnyky","category-inshyj","category-rozrobnyk","tag-affiai-uk"],"_links":{"self":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts\/228460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/comments?post=228460"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts\/228460\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/media\/221243"}],"wp:attachment":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/media?parent=228460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/categories?post=228460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/tags?post=228460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}