Removed CKEditor 5 because it was of little use and doubled the code size of root.js

Word wrap and Save to code editor.
This commit is contained in:
Tomas Bures 2018-11-22 15:21:15 +01:00
parent a993c06aaf
commit 3bb235a585
12 changed files with 417 additions and 82 deletions

View file

@ -1,17 +1,21 @@
const webpack = require('webpack');
const path = require('path');
/* Excluded. It's not very useful and just eats a lot of space in the resulting JS.
// The CKEditor part comes from https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/advanced-setup.html
const CKEditorWebpackPlugin = require( '@ckeditor/ckeditor5-dev-webpack-plugin' );
const { styles } = require( '@ckeditor/ckeditor5-dev-utils' );
*/
module.exports = {
mode: 'development',
plugins: [
/*
new CKEditorWebpackPlugin( {
// See https://ckeditor.com/docs/ckeditor5/latest/features/ui-language.html
language: 'en'
} )
*/
],
entry: {
"root": ['./src/root.js'],
@ -65,6 +69,7 @@ module.exports = {
}
]
},
/*
{
test: /ckeditor5-[^/]+\/theme\/[\w-/]+\.css$/,
use: [
@ -79,6 +84,7 @@ module.exports = {
}
]
},
*/
{
test: /\.(png|jpg|gif)$/,
use: [
@ -105,15 +111,17 @@ module.exports = {
'sass-loader'
]
},
/*
{
test: /ckeditor5-[^/]+\/theme\/icons\/[^/]+\.svg|ckeditor-insert-image\.svg$/,
use: [
'raw-loader'
]
},
*/
{
test: /\.(svg|otf|woff2|woff|ttf|eot)$/,
exclude: /ckeditor5-[^/]+\/theme\/icons\/[^/]+\.svg|ckeditor-insert-image\.svg$/,
// exclude: /ckeditor5-[^/]+\/theme\/icons\/[^/]+\.svg|ckeditor-insert-image\.svg$/,
use: [
'url-loader'
]