From a10aae21008b88e7fb815d1a00018b4a51167cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 6 Dec 2022 22:27:27 +0100 Subject: [PATCH] Deploy: update webpack config for postcss loader and ckeditor --- src/Bundle/ChillMainBundle/chill.webpack.config.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Bundle/ChillMainBundle/chill.webpack.config.js b/src/Bundle/ChillMainBundle/chill.webpack.config.js index 0e4924b03..727964779 100644 --- a/src/Bundle/ChillMainBundle/chill.webpack.config.js +++ b/src/Bundle/ChillMainBundle/chill.webpack.config.js @@ -26,12 +26,15 @@ buildCKEditor = function(encore) .addLoader({ test: /ckeditor5-[^/\\]+[/\\]theme[/\\].+\.css$/, loader: 'postcss-loader', - options: styles.getPostCssConfig( { - themeImporter: { + options: + { + postcssOptions: styles.getPostCssConfig( { + themeImporter: { themePath: require.resolve('@ckeditor/ckeditor5-theme-lark') - }, - minify: true - } ) + }, + minify: true + } ) + } } ) ; };