JSPM

  • Created
  • Published
  • Downloads 31191
  • Score
    100M100P100Q19947F
  • License GPL-2.0-or-later

CKEditor 5 plugin for webpack.

Package Exports

  • @ckeditor/ckeditor5-dev-webpack-plugin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ckeditor/ckeditor5-dev-webpack-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

CKEditor 5 Webpack plugin

Intergrate CKEditor 5's build process with your webpack setup.

Requires webpack ^4.0.0.

More information about development tools packages can be found at the following URL: https://github.com/ckeditor/ckeditor5-dev.

Usage

The current functionality of this plugin is limited to localizing the editor builds. Add this plugin to your webpack config to change the language of the editor's interface or build the editor with support for multiple languages (by extracting multiple language files):

const CKEditorWebpackPlugin = require( '@ckeditor/ckeditor5-dev-webpack-plugin' );

// Define webpack plugins ...
    plugins: [
        new CKEditorWebpackPlugin( {
            // Main language that will be built into the main bundle.
            language: 'en',

            // Additional languages that will be emitted to the `outputDirectory`.
            // This option can be set to an array of language codes or `'all'` to build all found languages.
            // The bundle is optimized for one language when this option is omitted.
            additionalLanguages: 'all',

            // Optional directory for emitted translations. Relative to the webpack's output.
            // Defaults to `'translations'`.
            // outputDirectory: 'ckeditor5-translations',

            // Whether the build process should fail if an error occurs.
            // Defaults to `false`.
            // strict: true,

            // Whether to log all warnings to the console.
            // Defaults to `false`.
            // verbose: true
        } ),

        // Other webpack plugins...
    ]
// ...

You can read more about localizing the editor in the Setting the UI language guide.

Changelog

See the CHANGELOG.md file.

License

Licensed under the terms of GNU General Public License Version 2 or later. For full details about the license, please check the LICENSE.md file.