mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-10-05 12:50:37 +08:00
Merge pull request #146 from halkeye/patch-1
update baseRootPath to be happier with npm@3
This commit is contained in:
commit
e7bbcb1fe7
1 file changed
+1
-1
@@ -6,7 +6,7 @@ let path = require('path');
|
||||
let fs = require('fs');
|
||||
|
||||
// Set the base root directory for our files
|
||||
let baseRootPath = path.join(__dirname, '../../node_modules/react-webpack-template');
|
||||
let baseRootPath = path.dirname(require.resolve("react-webpack-template"));
|
||||
|
||||
module.exports = generator.Base.extend({
|
||||
|
||||
|
||||
Reference in new issue
Block a user