Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
minimizer: [
new UglifyJsWebpackPlugin( {
sourceMap: true,
uglifyOptions: {
output: {
// Preserve CKEditor 5 license comments.
comments: /^!/
}
}
} )
]
},
plugins: [
new webpack.BannerPlugin( {
banner: bundler.getLicenseBanner(),
raw: true
} ),
],
module: {
rules: [
{
test: /\.jsx$/,
loader: 'babel-loader',
exclude: /node_modules/,
query: {
compact: false,
presets: [ '@babel/preset-react' ]
}
}
]
// // Preserve CKEditor 5 license comments.
// comments: /^!/
// }
// }
// } )
// ]
// },
plugins: [
new CKEditorWebpackPlugin( {
// UI language. Language codes follow the https://en.wikipedia.org/wiki/ISO_639-1 format.
// When changing the built-in language, remember to also change it in the editor's configuration (src/ckeditor.js).
language: 'en'
} ),
new webpack.BannerPlugin( {
banner: bundler.getLicenseBanner(),
raw: true
} )
],
module: {
rules: [
{
test: /\.svg$/,
use: [ 'raw-loader' ]
},
{
test: /\.(js|jsx)$/,
exclude: /node_modules[/\\]/,
use: [
{
loader: require.resolve( 'babel-loader' ),
minimizer: [
new UglifyJsWebpackPlugin( {
sourceMap: true,
uglifyOptions: {
output: {
// Preserve CKEditor 5 license comments.
comments: /^!/
}
}
} )
]
},
plugins: [
new webpack.BannerPlugin( {
banner: bundler.getLicenseBanner(),
raw: true
} ),
],
module: {
rules: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
}
]
},
};
comments: /^!/
}
}
} )
]
},
plugins: [
new CKEditorWebpackPlugin( {
// UI language. Language codes follow the https://en.wikipedia.org/wiki/ISO_639-1 format.
// When changing the built-in language, remember to also change it in the editor's configuration (src/ckeditor.js).
language: 'en',
additionalLanguages: 'all'
} ),
new webpack.BannerPlugin( {
banner: bundler.getLicenseBanner(),
raw: true
} )
],
module: {
rules: [
{
test: /\.svg$/,
use: [ 'raw-loader' ]
},
{
test: /\.(js|jsx)$/,
exclude: /node_modules[/\\]/,
use: [
{
loader: require.resolve( 'babel-loader' ),
path: path.resolve(__dirname, '..', 'src', 'sidebar', 'vendor'),
filename: 'ckeditor.js',
libraryTarget: 'umd',
libraryExport: 'default',
library: 'ClassicEditor'
},
plugins: [
new CKEditorWebpackPlugin({
language: 'en'
}),
new BabiliPlugin(null, {
comments: false
}),
new webpack.BannerPlugin({
banner: bundler.getLicenseBanner(),
raw: true
})
],
module: {
rules: [
{
test: /\.svg$/,
use: ['raw-loader']
},
{
test: /\.css$/,
use: [
{
loader: 'style-loader',
options: {