1.1.3 • Published 6 years ago
webpack-root v1.1.3
Webpack Root
const webpackRoot = require('webpack-root')
const root = new webpackRoot( __dirname )
console.log( root ); // example path to project
OR
const root = require('webpack-root')( __dirname )
console.log( root ); // example path to project
Node Modules Path
const node_modules = require('webpack-root')()
console.log( node_modules ); // path to node_modules