Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

T/11: Bundling a different language #14

Merged
merged 3 commits into from
Aug 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions build-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@
'use strict';

module.exports = {
// The editor creator to use.
editor: '@ckeditor/ckeditor5-editor-classic/src/classiceditor',

// The name under which the editor will be exported.
moduleName: 'ClassicEditor',

// Plugins to include in the build.
plugins: [
'@ckeditor/ckeditor5-presets/src/essentials',

Expand All @@ -24,6 +29,11 @@ module.exports = {
'@ckeditor/ckeditor5-list/src/list',
'@ckeditor/ckeditor5-paragraph/src/paragraph',
],

// UI language. Language codes follow the https://en.wikipedia.org/wiki/ISO_639-1 format.
language: 'en',

// Editor config.
config: {
toolbar: [
'headings',
Expand Down
2 changes: 1 addition & 1 deletion build/ckeditor.compat.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/ckeditor.compat.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/ckeditor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/ckeditor.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 5 additions & 1 deletion webpack.compat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -26,6 +27,9 @@ module.exports = {
},

plugins: [
new CKEditorWebpackPlugin( {
languages: [ buildConfig.language ]
} ),
new BabiliPlugin( null, {
comments: false
} ),
Expand Down
6 changes: 5 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -23,6 +24,9 @@ module.exports = {
},

plugins: [
new CKEditorWebpackPlugin( {
languages: [ buildConfig.language ]
} ),
new BabiliPlugin( null, {
comments: false
} ),
Expand Down