Last post May 02, 2019 03:11 PM by rloweinfo
Apr 30, 2019 08:44 PM|rloweinfo|LINK
Webpack is still referencing the file as I can see it in Developer Tools in Chrome and Edge.
How to refresh webpack? I have used ng build and confirmed that the file is not there in the dist.
May 01, 2019 05:51 AM|Fei Han - MSFT|LINK
Please clarify more information about the problem, which referenced js file is missing?
Besides, if you can share a reproducible sample, it will help us troubleshoot the issue better.
May 01, 2019 01:57 PM|rloweinfo|LINK
I watched NG build and witnessed that the dist folder is populating with the correct files and not showing the deleted file.
How is it possible that the file is still be referenced and how do I get rid of it? I cleared cache in browsers and development tools.
Thanks for any help.
May 01, 2019 02:20 PM|bruce (sqlwork.com)|LINK
most likely your website is not using the dist folder, but the dev folder. if using the core template, generally in debug build asp.net core calls node to get the spa files. if there is a guid error, node will return the old files. are you running watch?
May 01, 2019 02:34 PM|rloweinfo|LINK
I see that webpack has an option for watch in webpack.config.js. But in my solution (.net core 2.1) there isn't a file named webpack.config.js,
May 01, 2019 08:00 PM|bruce (sqlwork.com)|LINK
I use react rather than angular, but I assume spa services is using ng cli (instead of reacts create-react-app), which would use a ng serve (ng dev watch) under the covers to host the compiled scripts. check the package.json for script references. ng cli
uses the webpack.config in its node_module library.
you really should understand ng cli, before going much father. all you can turn off asp.net core auto running ng cli, and manually run it yourself if you are having issues.
May 02, 2019 03:11 PM|rloweinfo|LINK