Webpack: Add Dll(Reference)Plugin tests

This commit is contained in:
Mike Hill
2017-03-20 11:07:28 -05:00
parent bc0ac9ada3
commit cb2cbebe94
+21
View File
@@ -278,6 +278,27 @@ plugin = new webpack.ContextReplacementPlugin(
resourceRegExp,
newContentResource);
plugin = new webpack.ContextReplacementPlugin(resourceRegExp);
plugin = new webpack.DllPlugin({
context: 'dir-context',
name: 'dll-name',
path: 'manifest-path'
});
plugin = new webpack.DllPlugin([{
context: 'dir-context',
name: 'dll-name',
path: 'manifest-path'
}]);
plugin = new webpack.DllReferencePlugin({
content: 'dll content',
context: 'dir-context',
manifest: {
content: 'dll content',
name: 'dll name'
},
name: 'dll name',
scope: 'dll prefix',
sourceType: 'var'
});
plugin = new webpack.IgnorePlugin(requestRegExp);
plugin = new webpack.IgnorePlugin(requestRegExp, contextRegExp);