Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

fix: add a not null check for the content property before throwing error #404

Merged
merged 3 commits into from
Apr 24, 2017
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ ExtractTextPlugin.prototype.apply = function(compiler) {
return callback();
}
meta = module[NS];
if(!Array.isArray(meta.content)) {
if(!Array.isArray(meta.content) && meta.content != null) {
err = new Error(module.identifier() + " doesn't export content");
compilation.errors.push(err);
return callback();
Expand Down