copy-webpack-plugin
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -77,9 +77,9 @@ 'use strict'; | ||
var outputPath = compiler.options.devServer.outputPath; | ||
var devServer = compiler.options.devServer; | ||
if (!outputPath || outputPath === '/') { | ||
if (!devServer || !devServer.outputPath || devServer.outputPath === '/') { | ||
throw new Error('CopyWebpackPlugin: to use webpack-dev-server, devServer.outputPath must be defined in the webpack config'); | ||
} | ||
return outputPath; | ||
return devServer.outputPath; | ||
}; | ||
@@ -86,0 +86,0 @@ |
{ | ||
"name": "copy-webpack-plugin", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Copy files and directories in webpack", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45603