Closed
Description
Is it possible to respect exclude option when handling url?
I have a specific use case, in our CMS an url that has '++resource++' inside should be considered external image. This is my current configuration:
{
// Handle SCSS files
test: /\.scss$/,
exclude: /\+\+resource\+\+/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: [
'css-loader',
'postcss-loader',
'sass-loader'
]
}),
},
But the url handling is not respecting this configuration, and throw this traceback:
ERROR in ./node_modules/css-loader!./node_modules/postcss-loader/lib!./node_modules/sass-loader/lib/loader.js!./app/cover.scss
Module not found: Error: Can't resolve './++resource++plone.app.jquerytools.pb_close.png' in '/home/rodfersou/.projects/collective.cover/webpack/app'
@ ./node_modules/css-loader!./node_modules/postcss-loader/lib!./node_modules/sass-loader/lib/loader.js!./app/cover.scss 7:6933-6992