webpack-universal-helpers

0.0.14 • Public • Published

webpack-universal-helpers · npm

Just a few helpers for building universal apps with webpack.

Designed to be used with webpack@3.

Table of Content

CLI

webpack-universal

Arguments

  1. bundle (String): Path to bundle to start.
  2. [config] (String): Defaults to webpack.config.js.
  3. [cwd] (String)
  4. [hot] (Boolean): Defaults to false.

API

nodeExternals(options)

Arguments

  1. options (Object):
    • [pathToPackageJson] (String)
    • [packageJsonSections] (Array<String>): Defaults to ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'].
    • [pathToNodeModules] (String)
    • [excludeNodeModulesDirs] (Function|Array<String>|Regex|String)
    • [whitelistModules] (Function|Array<String>|Regex|String)
    • [createImport] (Function): Defaults to module => 'commonjs' + module.
    • [includeAbsolutePaths] (Booldean): Defaults to false.

watchServer(options)

Arguments

  1. options (Object):
    • webpackConfig (String)
    • bundlePath (String)
    • cwd (String)
    • hot (Boolean)

Package Sidebar

Install

npm i webpack-universal-helpers

Weekly Downloads

2

Version

0.0.14

License

MIT

Unpacked Size

41.9 kB

Total Files

11

Last publish

Collaborators

  • vlad-zhukov