Closed mauthi closed 4 years ago
Hi Mauthi,
In order to reliably ensure that the local pictures are overwritten, the best way is to create an additional CopyPlugin instance, beneath the default one.
It seems that a CopyPlugin instance is running the copy processes concurrently, so overwriting the assets using the arguments order is not guaranteed.
plugins: [
new CopyPlugin([{
from: 'node_modules/@enso-ui/ui/src/resources/images',
to: 'images',
force: true,
folder: true,
}, {
from: '../vendor/laravel-enso/core/src/resources/images',
to: 'images',
force: true,
folder: true,
}]),
new CopyPlugin([{
from: 'src/images',
to: 'images',
force: true,
folder: true,
}]),
],
I'll also update the docs.
Thx - it works
This is a bug.
Prerequisites
Description
I changed the plugin section in
vue-config.js
to the following:In my
client/src/images
folder I have a file calledlogo.svg
Steps to Reproduce
client/src/images
vue-config.js
like described abovelogo.svg
to folderyarn run dev
logo.svg
in yourpublic/images
folderExpected behavior
logo.svg
should be the one fromclient/src/images
Actual behavior
logo.svg
is the one from enso(If I remove the first to config options from config and leave only my folder it's working - so I guess it's something related to execution order?)