Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module: {
rules: [
{
// test: **/ckeditor5-*/theme/icons/*.svg
test: /ckeditor5-[^/\\]+[/\\]theme[/\\]icons[/\\][^/\\]+\.svg$/,
use: [ 'raw-loader' ]
},
{
// test: **/ckeditor5-*/theme/**/*.css
test: /\.css$/,
use: [
'style-loader',
{
loader: 'postcss-loader',
options: getPostCssConfig( {
themeImporter: {
themePath: options.themePath
},
minify: true
} )
},
]
},
{
test: /\.(txt|html|rtf)$/,
use: [ 'raw-loader' ]
},
{
test: /\.js$/,
loader: require.resolve( '../ck-debug-loader' ),
query: {
module: {
rules: [
{
test: /\.svg$/,
use: [ 'raw-loader' ]
},
{
test: /\.css$/,
use: [
{
loader: 'style-loader'
},
{
loader: 'postcss-loader',
options: getPostCssConfig( {
themeImporter: {
themePath: options.themePath
},
sourceMap: true
} )
},
]
},
{
test: /\.(txt|html)$/,
use: [ 'raw-loader' ]
},
{
test: /\.js$/,
loader: require.resolve( '../ck-debug-loader' ),
query: {