enhanced-resolve-cli
v0.2.0
Published
Provides `enhancedresolve` CLI tool to output a resolved path to a requested import/module with support for Node.js and webpack resolve options.
Maintainers
Readme
enhanced-resolve-cli
https://github.com/davidosomething/enhanced-resolve-cli
Get a resolved module path. Reads resolve settings from your
webpack.config.js if available, otherwise falls back to node resolution.
Installation
npm install -g enhanced-resolve-cliUsage
Usage: enhancedresolve [options] <request>
Options:
-V, --version output the version number
-s, --suppress Suppress error output
-b, --basepath <path> Path to resolve from </Users/davidosomething/projects/enhanced-resolve-cli>
-h, --help output usage informationVim plugin
vim-enhanced-resolver
is a vim plugin using this cli tool. It provides a mappable <Plug> to jump
to the resolved file.
Examples
Finds generic node_modules
$ enhancedresolve jspm
/Users/davidosomething/projects/davidosomething/16.davidosomething.com/node_modules/jspm/api.jsWebpack alias support
$ enhancedresolve lib/utils
/Full/Path/To/lib/utils.jsResolves relative paths
$ enhancedresolve ../site.js
/Users/davidosomething/projects/davidosomething/16.davidosomething.com/lib/site.jsLicense
MIT
