Преглед на файлове

Added support for building editor in another language than "en".

Kamil Piechaczek преди 8 години
родител
ревизия
95469bf124

+ 1 - 0
packages/ckeditor5-build-classic/build-config.js

@@ -24,6 +24,7 @@ module.exports = {
 		'@ckeditor/ckeditor5-list/src/list',
 		'@ckeditor/ckeditor5-paragraph/src/paragraph',
 	],
+	language: 'en',
 	config: {
 		toolbar: [
 			'headings',

+ 1 - 0
packages/ckeditor5-build-classic/package.json

@@ -18,6 +18,7 @@
   },
   "devDependencies": {
     "@ckeditor/ckeditor5-dev-utils": "^3.0.0",
+    "@ckeditor/ckeditor5-dev-webpack-plugin": "^2.0.11",
     "babel-core": "^6.24.0",
     "babel-loader": "^6.4.0",
     "babel-preset-env": "^1.2.2",

+ 5 - 1
packages/ckeditor5-build-classic/webpack.compat.config.js

@@ -8,8 +8,9 @@
 const path = require( 'path' );
 const webpack = require( 'webpack' );
 const { bundler } = require( '@ckeditor/ckeditor5-dev-utils' );
-
+const CKEditorWebpackPlugin = require( '@ckeditor/ckeditor5-dev-webpack-plugin' );
 const BabiliPlugin = require( 'babili-webpack-plugin' );
+const buildConfig = require( './build-config' );
 
 module.exports = {
 	devtool: 'source-map',
@@ -26,6 +27,9 @@ module.exports = {
 	},
 
 	plugins: [
+		new CKEditorWebpackPlugin( {
+			languages: [ buildConfig.language ]
+		} ),
 		new BabiliPlugin( null, {
 			comments: false
 		} ),

+ 5 - 1
packages/ckeditor5-build-classic/webpack.config.js

@@ -8,8 +8,9 @@
 const path = require( 'path' );
 const webpack = require( 'webpack' );
 const { bundler } = require( '@ckeditor/ckeditor5-dev-utils' );
-
+const CKEditorWebpackPlugin = require( '@ckeditor/ckeditor5-dev-webpack-plugin' );
 const BabiliPlugin = require( 'babili-webpack-plugin' );
+const buildConfig = require( './build-config' );
 
 module.exports = {
 	devtool: 'source-map',
@@ -23,6 +24,9 @@ module.exports = {
 	},
 
 	plugins: [
+		new CKEditorWebpackPlugin( {
+			languages: [ buildConfig.language ]
+		} ),
 		new BabiliPlugin( null, {
 			comments: false
 		} ),