Is there a way to configure script injections?
sultan99 opened this issue · 1 comments
sultan99 commented
I have issues with injected scripts in html.
First, some packages have an optional dependencies, before to import they check require.resolve('optional-dependency-which-end-user-may-not-install')
, if the optional dependency is installed then would be called require/import
.
So the dynamic-cdn-webpack-plugin miss to inject those optional packages, and the application ends with error: Module not found
.
The other issue, some time dependent package is injected before the main package.
My question is, Is there a way how to force dynamic-cdn-webpack-plugin to include some packages and make script injection order?
sultan99 commented
There was issue with vendor library not dynamic-cdn-webpack-plugin.