Skip to content

Commit

Permalink
fix: wrong npm path need to be use the relative npm path
Browse files Browse the repository at this point in the history
  • Loading branch information
demetriusj committed Apr 27, 2015
1 parent 5d41002 commit 64cb612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ manifestParser.prototype.buildWebpackConfig = function(manifestGlob, options, ne
ejs: 'ejs'
};

if (!fs.existsSync(path.resolve(options.projectRootPath, 'node_modules', 'mobile-detect', 'mobile-detect.min.js'))) {
if (!fs.existsSync(path.resolve(__dirname, '..', 'node_modules', 'mobile-detect', 'mobile-detect.min.js'))) {
externalDependencies['mobile-detect/mobile-detect.min.js'] = path.resolve(__dirname, '..', 'node_modules', 'mobile-detect', 'mobile-detect.min.js');
}
}
Expand Down

0 comments on commit 64cb612

Please sign in to comment.