CodeCoupler Webpack Development Details: Dependencies
The most dependencies are self-explanatory because they are related to functionality of
cc-webpack
. They are defined as dependencies
and not devDependencies
so they will be installed
if you add cc-webpack
to your project.
cc-webpack
itself should be added as devDependency
because none of these dependencies are
important at runtime with one exception.
The package vue
is of course something you need at runtime. In versions before 4.3 it was
configured here. This was because some other packages depents not only on vue
but also on the
exact version. You cannot install for example vue-template-loader
and vue
in different versions.
The idea behind this was that if vue
would not be included here, it would be hard to synchronize
cc-webpack
with the project that use cc-webpack
. In subsequent versions, however, we did not do
this because the end user did not have to install vue, but had to enter it in the externals
configuration. This was very confusing and could easily be overlooked.
All libraries are linked in the latest version at best. Here some remarks:
-
slash
: Installed in the version 3 instead 4 to work together with@codecoupler/cc-webpack-externals-plugin
and the and thehtml-webpack-deploy-plugin
used there. Both use the version 3 and version 4 have some breaking changes that cannot integrated for now. -
@vue/compiler-sfc
: Is needed byvue-loader
. -
postcss
: Normally not needed to be in the dendency list (because it is already a required package), but all postcss extensions throw a warning if not there.