@@ -24,8 +24,6 @@ var Encore = require('@symfony/webpack-encore');
2424const zlib = require ( 'zlib' ) ;
2525const CompressionPlugin = require ( "compression-webpack-plugin" ) ;
2626const BundleAnalyzerPlugin = require ( 'webpack-bundle-analyzer' ) . BundleAnalyzerPlugin ;
27- const { CKEditorTranslationsPlugin } = require ( '@ckeditor/ckeditor5-dev-translations' ) ;
28- const { styles } = require ( '@ckeditor/ckeditor5-dev-utils' ) ;
2927
3028// Manually configure the runtime environment if not already configured yet by the "encore" command.
3129// It's useful when you use tools that rely on webpack.config.js file.
@@ -123,13 +121,6 @@ Encore
123121 // uncomment if you're having problems with a jQuery plugin
124122 . autoProvidejQuery ( )
125123
126- . addPlugin ( new CKEditorTranslationsPlugin ( {
127- // See https://ckeditor.com/docs/ckeditor5/latest/features/ui-language.html
128- language : 'en' ,
129- addMainLanguageTranslationsToAllAssets : true ,
130- additionalLanguages : 'all' ,
131- outputDirectory : 'ckeditor_translations'
132- } ) )
133124
134125 // Use raw-loader for CKEditor 5 SVG files.
135126 . addRule ( {
@@ -142,19 +133,6 @@ Encore
142133 loader . exclude = / c k e d i t o r 5 - [ ^ / \\ ] + [ / \\ ] t h e m e [ / \\ ] i c o n s [ / \\ ] [ ^ / \\ ] + \. s v g $ / ;
143134 } )
144135
145- // Configure PostCSS loader.
146- . addLoader ( {
147- test : / c k e d i t o r 5 - [ ^ / \\ ] + [ / \\ ] t h e m e [ / \\ ] .+ \. c s s $ / ,
148- loader : 'postcss-loader' ,
149- options : {
150- postcssOptions : styles . getPostCssConfig ( {
151- themeImporter : {
152- themePath : require . resolve ( '@ckeditor/ckeditor5-theme-lark' )
153- } ,
154- minify : true
155- } )
156- }
157- } )
158136
159137;
160138
0 commit comments