hi,
thank you for this solution. It work really good in your small test env. But if i try to use it in my application i always got some errors.
Currently i have this error i cant resolve:
Insufficient number of arguments or no entry found.
Alternatively, run 'webpack(-cli) --help' for usage info.
Hash: 0e820b8704eb9b76ae14
Version: webpack 4.29.6
Time: 923ms
Built at: 2020-05-14 20:05:37
Asset Size Chunks Chunk Names
index.html 398 bytes [emitted]
js/polyfill.chunk.js 159 bytes polyfill [emitted] polyfill
js/runtime.bundle.js 30.9 KiB runtime [emitted] runtime
js/vendorspolyfill.chunk.js 945 KiB vendorspolyfill [emitted] vendorspolyfill
Entrypoint polyfill = js/runtime.bundle.js js/vendorspolyfill.chunk.js js/polyfill.chunk.js
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {vendors~polyfill} [built]
+ 281 hidden modules
ERROR in Entry module not found: Error: Can't resolve 'C:\Users\Christoph\Lokaler-Speicherort-PC\SpeicherDaten_HoehensteigerGames_\source_HoehensteigerGames\WebDev\Web Admin Panel\client\src\main' in 'C:\Users\Christoph\Lokaler-Speicherort-PC\SpeicherDaten_HoehensteigerGames_\source_HoehensteigerGames\WebDev\Web Admin Panel\client'
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
[./node_modules/html-webpack-plugin/lib/loader.js!./index.html] 390 bytes {0} [built]
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {0} [built]
[./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built]
+ 1 hidden module
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: webpack
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Christoph\AppData\Roaming\npm-cache_logs\2020-05-14T18_05_37_171Z-debug.log
But the the direcotry and file structure exactly the same as you have.
may you have a solution where i can use the same config in my vue.config.js?
The only difference between my project and yours is that i use typescript. So my main.js is a main.ts.
It would be grate if you can help me. Tank you.