shlomiassaf / ngc-webpack

Angular compiler-cli with webpack's loader chain.
MIT License
84 stars 15 forks source link

breaks webpack-dll-bundles-plugin #27

Closed IAMtheIAM closed 7 years ago

IAMtheIAM commented 7 years ago

Using this plugin breaks your webpack-dll-bundles-plugin.

If DLLs already exist prior to enabling ngc-webpack plugin, and then I enable ngc-webpack, it is success

Starting compilation using the angular compiler.
Angular compilation done, starting webpack bundling.
DLL: Checking if DLLs are valid.
DLL: All DLLs are valid.

However If I delete my dlls folder, then try to run again, fail

Starting compilation using the angular compiler.
Angular compilation done, starting webpack bundling.
Error: ENOENT: no such file or directory, open 'C:\Source\GitHub\wwwroot\dlls\polyfills-manifest.json'

It tries to look for the manifest file before even checking if the DLLs are valid or not.

IAMtheIAM commented 7 years ago

UPDATE: I figured it out.
Order matters: DllBundlesPlugin must come BEFORE NgcWebpackPlugin or the above error occurs.