I found an issue when building our assets in a Jenkins job that has a space in the job name.
My project contains a less file which is marked as an included entry file, the AssetResolver wraps the with the extract-file-loader but uses the wrong url encoding.
So the working directory of the maba:webpack:compile is /path/to/jenkins/My Job/workspace. I have a bundle MyBundle and a twig file that contains a webpack_asset('@MyBundle/some.less') call.
The resulting app/cache/local/webpack.config.js contains:
Hey there,
I found an issue when building our assets in a Jenkins job that has a space in the job name. My project contains a less file which is marked as an included entry file, the AssetResolver wraps the with the
extract-file-loader
but uses the wrong url encoding.So the working directory of the
maba:webpack:compile
is/path/to/jenkins/My Job/workspace
. I have a bundleMyBundle
and a twig file that contains awebpack_asset('@MyBundle/some.less')
call.The resulting
app/cache/local/webpack.config.js
contains:Notice that the space has been replaced with a
+
:(Running that configuration file then causes the following error in webpack:
I've added a couple of tests to verify the intended behaviour.