How to use the DllReferencePlugin function from webpack

Find comprehensive JavaScript webpack.DllReferencePlugin code examples handpicked from public code repositorys.

48
49
50
51
52
53
54
55
56
57
plugins: [
  // It is possible to require the ckeditor5-dll.manifest.json used in
  // core/node_modules rather than having to install CKEditor 5 here.
  // However, that requires knowing the location of that file relative to
  // where your module code is located.
  new webpack.DllReferencePlugin({
    manifest: require('./node_modules/ckeditor5/build/ckeditor5-dll.manifest.json'), // eslint-disable-line global-require, import/no-unresolved
    scope: 'ckeditor5/src',
    name: 'CKEditor5.dll',
  }),
fork icon0
star icon0
watch icon0

128
129
130
131
132
133
134
135
136
137

      process.exit(0);
    }
  }

  return new webpack.DllReferencePlugin({
    context: process.cwd(),
    manifest: require(manifestPath), // eslint-disable-line
  });
});
fork icon0
star icon0
watch icon0

+ 3 other calls in file