Coly010 / ng-rspack-build

Rspack plugin and loaders to build Angular applications
19 stars 1 forks source link

[Bug] Invalid `public` content folder path #11

Open Yberion opened 20 hours ago

Yberion commented 20 hours ago

Hello,

Reading the log when serving an rspack application, it seems that Content not from webpack is served from folder is incorrect.

It is saying E:\Git\nx-rspack-angular\public when it should be E:\Git\nx-rspack-angular\apps\rspack-angular\public.

...
<i> [webpack-dev-server] Content not from webpack is served from 'E:\Git\nx-rspack-angular\public' directory
...

Reproduction

https://github.com/Yberion/nx-rspack-angular/tree/feat/rspack-app

You will face the errors from https://github.com/Coly010/ng-rspack-build/issues/9 & https://github.com/Coly010/ng-rspack-build/issues/10 but you will be able to see the logs when trying to serve the app.

Env

Angular CLI: 18.2.6
Node: 20.17.0
Package Manager: pnpm 9.11.0
OS: win32 x64

Angular: 18.2.6
... animations, build, cdk, cli, common, compiler, compiler-cli
... core, forms, language-service, material, platform-browser
... platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1802.6
@angular-devkit/build-angular   18.2.6
@angular-devkit/core            18.2.6
@angular-devkit/schematics      18.2.6
@schematics/angular             18.2.6
ng-packagr                      18.2.1
rxjs                            7.8.1
typescript                      5.5.4
Coly010 commented 17 hours ago

Thanks for raising!!