@talentsoft-opensource/integration-dll
v4.7.2
Published
The assembly used for the integration running inside Talentsoft products.
Downloads
5
Keywords
Readme
What this package is used for?
This package is used to group all dependencies needed by a partner widget. It helps to reduce the package compilation time and improves the client side cache reuse.
How to use this package?
This package defines a webpack dll. In order to use it in a widget package:
- add integration-dll in the package dependencies
- in the webpack configuration, reference the dll:
const webpack = require('webpack');
module.exports = {
...
plugins: [
...
new webpack.DllReferencePlugin({
context: '.',
manifest: require('./node_modules/@talentsoft-opensource/integration-dll/dist/integration-manifest.json')
}),
...
],
...
}
This way, if a dependency is referenced in integration-dll is imported in the widget package, webpack won't add it to the widget bundle and will instead load it from integration-dll.
Warning: It seems that importing a less dependency from a less file doesn't work well with the webpack dll system. In order to make it work correctly it is necessary to place all imports in a js/ts/tsx file.