This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Resolving dynamic files #883
Comments
Similar to #165, I tried to set webSecurity to false |
Here is some proper context for my previous question (on a simple example): IssueFresh electron-vue project with the following <template>
<div id="wrapper">
<img id="logo" src="/an_absolute_path/default.png" alt="electron-vue">
</div>
</template> Throw: Reproductionvue init simulatedgreg/electron-vue another_test
cd another_test
npm install
npm run dev and:
mainWindow = new BrowserWindow({
height: 563,
useContentSize: true,
width: 1000,
webPreferences: {
webSecurity: false
},
}) Screenshot of rendering errorDevelopment environment.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I would like to set the
src
of an<img>
to the path of an image from a newly created folder (not existing at build time).I know resolving assets questions are quite frequent but I cannot have the image created in the
asset
folder and webpack cannot resolve the path since the folder does not exists when compiling.I tried a solution with
app.getPath
from electron but with no success.Any advice?
The text was updated successfully, but these errors were encountered: