From cb2cbebe94f4264da072934364747396f0600e9e Mon Sep 17 00:00:00 2001 From: Mike Hill Date: Mon, 20 Mar 2017 11:07:28 -0500 Subject: [PATCH] Webpack: Add Dll(Reference)Plugin tests --- webpack/webpack-tests.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/webpack/webpack-tests.ts b/webpack/webpack-tests.ts index ce9d42d71b..aeb17e5d4c 100644 --- a/webpack/webpack-tests.ts +++ b/webpack/webpack-tests.ts @@ -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);