diff options
| author | Marcus Eibrink-Lunzenauer <lunzenauer@elan-ev.de> | 2025-04-11 08:44:34 +0000 |
|---|---|---|
| committer | Marcus Eibrink-Lunzenauer <lunzenauer@elan-ev.de> | 2025-04-11 08:44:34 +0000 |
| commit | d0cc5e95599ee4c9145bcd8e1cab5b742ee5a8b1 (patch) | |
| tree | dd802de05f216effa68768763315889d22b5407d /webpack.common.js | |
| parent | 9eb4a969ac7760c0af0032a80ab9fcc6ddbc1d8b (diff) | |
Fix CKE update to fix #5484
Closes #5484
Merge request studip/studip!4124
Diffstat (limited to 'webpack.common.js')
| -rw-r--r-- | webpack.common.js | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/webpack.common.js b/webpack.common.js index e3b38d7..612895b 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -1,5 +1,3 @@ -const { CKEditorTranslationsPlugin } = require('@ckeditor/ckeditor5-dev-translations'); -const { styles } = require('@ckeditor/ckeditor5-dev-utils'); const { RsdoctorWebpackPlugin } = require('@rsdoctor/webpack-plugin'); const CopyPlugin = require('copy-webpack-plugin'); const ESLintPlugin = require('eslint-webpack-plugin'); @@ -7,22 +5,6 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const path = require('path'); const { VueLoaderPlugin } = require('vue-loader'); -const postcssOptions = styles.getPostCssConfig({ - themeImporter: { - themePath: require.resolve('@ckeditor/ckeditor5-theme-lark'), - }, - minify: true, -}); - -// TODO: Dieser Workaround sollte entfernt werden, sobald wir den CKE auf v43+ updaten können. -postcssOptions.plugins[postcssOptions.plugins.findIndex((plugin) => plugin.postcssPlugin === 'postcss-nesting')] = - require('postcss-nesting')({ - // https://github.com/ckeditor/ckeditor5/issues/11730 - noIsPseudoSelector: true, - edition: '2021', - silenceAtNestWarning: true, - }); - const assetsPath = path.resolve(__dirname, 'resources/assets/javascripts'); module.exports = { @@ -39,7 +21,7 @@ module.exports = { chunkFilename: 'javascripts/[id].chunk.js?h=[chunkhash]', filename: 'javascripts/[name].js', clean: { - keep: /^(fonts|images|javascripts\/mathjax|sounds)/, + keep: /^(fonts|images|javascripts\/mathjax|sounds|stylesheets\/\.gitkeep)/, }, }, module: { @@ -63,7 +45,6 @@ module.exports = { }, { loader: 'postcss-loader', - options: { postcssOptions }, }, ], }, @@ -144,16 +125,11 @@ module.exports = { eslintPath: 'eslint/use-at-your-own-risk', exclude: [ 'node_modules', - 'public/assets/javascripts/ckeditor/ckeditor.js', 'resources/assets/javascripts/jquery/autoresize.jquery.min.js', 'resources/assets/javascripts/jquery/jstree/jquery.jstree.js', 'resources/assets/javascripts/vendor', ], }), - new CKEditorTranslationsPlugin({ - language: 'de', - addMainLanguageTranslationsToAllAssets: true, - }), ].filter(Boolean), resolve: { alias: { |
