SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.47k stars 1.54k forks source link

How to import local css and js files into index.ejs? #984

Open c0dezli opened 4 years ago

c0dezli commented 4 years ago

I'm facing the same issue and the above solution doesn't work for me. I'm trying to use the Xel framework in my project and trying to load it into my project like this

<script src="./node_modules/xel/xel.min.js"></script>

it works fine in dev mode, but in build it just says

Failed to load resource: net::ERR_FILE_NOT_FOUND

I searched online for days and no one seems to solve this issue, I have literally no idea what should I do now