Skip to content

Commit fcd5982

Browse files
committed
Fixed webpack build
1 parent c09fc7d commit fcd5982

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

assets/controllers/elements/ckeditor_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import "ckeditor5/ckeditor5.css";;
2929
import "../../css/components/ckeditor.css";
3030

3131
const translationContext = require.context(
32-
'ckeditor5/translations',
32+
'ckeditor5-translations', //Alias defined in webpack.config.js
3333
false,
3434
//Only load the translation files we will really need
3535
/(de|it|fr|ru|ja|cs|da|zh|pl|hu)\.js$/

webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
var Encore = require('@symfony/webpack-encore');
2323

2424
const zlib = require('zlib');
25+
const path = require('path')
2526
const CompressionPlugin = require("compression-webpack-plugin");
2627
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
2728

@@ -133,6 +134,10 @@ Encore
133134
loader.exclude = /ckeditor5-[^/\\]+[/\\]theme[/\\]icons[/\\][^/\\]+\.svg$/;
134135
} )
135136

137+
.addAliases({
138+
'ckeditor5-translations': path.resolve(__dirname, 'node_modules/ckeditor5/dist/translations')
139+
})
140+
136141

137142
;
138143

0 commit comments

Comments
 (0)