mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
update baseRootPath to be happier with npm@3
npm@3 now flattens node_modules directory This should be happy no matter where the module ends up
This commit is contained in:
parent
76f0e8e672
commit
8a2fc142ba
@ -6,7 +6,7 @@ let path = require('path');
|
|||||||
let fs = require('fs');
|
let fs = require('fs');
|
||||||
|
|
||||||
// Set the base root directory for our files
|
// 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({
|
module.exports = generator.Base.extend({
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user