From e0882de7c8d9ec767b88f1300849a326201760bb Mon Sep 17 00:00:00 2001 From: Maciej Bukowski Date: Thu, 23 Apr 2020 11:58:20 +0200 Subject: [PATCH] Aligned snippet adapter to changes in CKEditorWebpackPlugin. --- scripts/docs/snippetadapter.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/docs/snippetadapter.js b/scripts/docs/snippetadapter.js index b09164c34a3..b44dcd481d4 100644 --- a/scripts/docs/snippetadapter.js +++ b/scripts/docs/snippetadapter.js @@ -275,7 +275,10 @@ function getWebpackConfig( snippets, config ) { definitions[ definitionKey ] = JSON.stringify( config.definitions[ definitionKey ] ); } - const ckeditorWebpackPluginOptions = {}; + const ckeditorWebpackPluginOptions = { + // All translation files are added to HTML files directly later. + buildAllTranslationsToSeparateFiles: true + }; if ( config.language === MULTI_LANGUAGE ) { const additionalLanguages = new Set(); @@ -331,7 +334,7 @@ function getWebpackConfig( snippets, config ) { } ), new webpack.DefinePlugin( definitions ), new ProgressBarPlugin( { - format: `Building snippets for language "${ config.language }": :percent (:msg)`, + format: `Building snippets for language "${ config.language }": :percent (:msg)` } ) ],