This is a dummy project which shows how to bundle CKEditor 5 with webpack (version 2).
- Clone this repository:
git clone https://github.com/wwalc/ckeditor5-webpack.git cd ckeditor5-webpack
- Create a bundle:
npm install npm run bundle
- Open index.html in your browser.
Follow ckeditor/ckeditor5#139 to stay up to date.
This is not an official documentation. It is a mere mix of webpack configuration used by ckeditor5.github.io with code posted by Ilya Semenov in this comment, which I'm currently using for playing with CKEditor 5.
The created bundle consists of two files: build/css/styles.css
and build/js/app.bundle.js
.
If you would like to build everything into a single file, check the webpack config of ckeditor5.github.io.