Wizzi schema webpack

Exports
jsProp
Element Tag Super Flags
webpackitem webpackitem
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many
comment comments one-to-many
Methods
Signature Statements
propertyOfCategory
var ret = [];
foreach item in this.properties;
return ret;
Element Tag Super Flags
comment # webpackitem
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
property property webpackitem
Attributes
Name Tag Type Default Inherited Flags Description
category category string string
name name string string
value value string string
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Methods
Signature Statements
wzInitialize
set this.name = this.wzName;
Element Tag Super Flags
webpack webpack webpackitem
Attributes
Name Tag Type Default Inherited Flags Description
build build string development
restrict
development
development production
config config string none
restrict
none
none react
target target string web
https://webpack.js.org/configuration/target/  
restrict
https://webpack.js.org/configuration/target/ async-node Compile for usage in a Node.js-like environment (uses fs and vm to load chunks asynchronously)  
Compile for usage in a Node.js-like environment (uses fs and vm to load chunks asynchronously) electron-main Compile for Electron for main process.  
Compile for Electron for main process. electron-renderer Compile for Electron for renderer process, providing a target using JsonpTemplatePlugin, FunctionModulePlugin for browser environments and NodeTargetPlugin and ExternalsPlugin for CommonJS and Electron built-in modules.  
Compile for Electron for renderer process, providing a target using JsonpTemplatePlugin, FunctionModulePlugin for browser environments and NodeTargetPlugin and ExternalsPlugin for CommonJS and Electron built-in modules. node Compile for usage in a Node.js-like environment (uses Node.js require to load chunks)  
Compile for usage in a Node.js-like environment (uses Node.js require to load chunks) node-webkit Compile for usage in WebKit and uses JSONP for chunk loading. Allows importing of built-in Node.js modules and nw.gui (experimental)  
Compile for usage in WebKit and uses JSONP for chunk loading. Allows importing of built-in Node.js modules and nw.gui (experimental) web Compile for usage in a browser-like environment (default)  
Compile for usage in a browser-like environment (default) webworker Compile as WebWorker  
context context string string
The context is an absolute string to the directory that contains the entry files.   The base directory, an absolute path, for resolving entry points and loaders from configuration.  
devtool devtool string
restrict
eval +++ +++ no generated code  
+++ +++ no generated code cheap-eval-source-map + ++ no transformed code (lines only)  
+ ++ no transformed code (lines only) cheap-source-map + o yes transformed code (lines only)  
+ o yes transformed code (lines only) cheap-module-eval-source-map o ++ no original source (lines only)  
o ++ no original source (lines only) cheap-module-source-map o - yes original source (lines only)  
o - yes original source (lines only) eval-source-map -- + no original source  
-- + no original source source-map -- -- yes original source  
-- -- yes original source nosources-source-map -- -- yes without source content  
Relations
Name Role Cardinality Inherited Flags Description
entry one-to-one is-one-to-one
output one-to-one is-one-to-one
resolve one-to-one is-one-to-one
module one-to-one is-one-to-one
plugin plugins one-to-many
external externals one-to-many
devServer one-to-one is-one-to-one
watch one-to-one is-one-to-one
watchOptions one-to-one is-one-to-one
feature features one-to-many
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Methods
Signature Statements
wzInitialize
if this.config === 'react';
wzinitialize
set this.facets = [];
if this.context && this.context.length > 0;
if this.target && this.target.length > 0;
if this.devtool && this.devtool.length > 0;
setReactConfig
Element Tag Super Flags
feature feature webpackitem
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
file file webpackitem
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
entry entry webpackitem
Description
https://webpack.js.org/configuration/entry/  
Attributes
Name Tag Type Default Inherited Flags Description
watch watch boolean false
Relations
Name Role Cardinality Inherited Flags Description
file files one-to-many
entryChunk entryChunks one-to-many
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Methods
Signature Statements
wzinitialize
if this.entryChunks.length == 0;
Element Tag Super Flags
entryChunk chunk
Description
https://webpack.js.org/concepts/entry-points/  
Relations
Name Role Cardinality Inherited Flags Description
file files one-to-many
Methods
Signature Statements
wzinitialize
TODO error  
if this.files.length == 1;
elif this.files.length > 1;
Element Tag Super Flags
output output webpackitem
Description
https://webpack.js.org/configuration/output/  
Attributes
Name Tag Type Default Inherited Flags Description
path path string string
pathExpr path-expr string string
The output directory as an absolute path.  
pathInfo path-info boolean false
Tell webpack to include comments in bundles with information about the contained modules.   This option defaults to false and should not be used in production,   but it's very useful in development when reading the generated code.  
chunkFilename chunk-filename string string
crossOriginLoading cross-origin-loading string false
Only used when target is web, which uses JSONP for loading on-demand chunks,   by adding script tags.  
restrict
by adding script tags. false Disable cross-origin loading (default)  
Disable cross-origin loading (default) anonymous Enable cross-origin loading without credentials  
Enable cross-origin loading without credentials use-credentials Enable cross-origin loading with credentials  
hashFunction hash-function string string
The hashing algorithm to use, defaults to 'md5'.   All functions from Node.JS' crypto.createHash are supported.  
hashDigest hash-digest string string
The hashing algorithm to use, defaults to 'hex'.   All functions from Node.JS' hash.digest are supported.  
hashDigestLength hash-digest-length string string
The prefix length of the hash digest to use, defaults to 20.  
hashSalt hash-salt string string
An optional salt to update the hash via Node.JS' hash.update.  
filename filename string bundle.js
publicPath public-path string string
This is an important option when using on-demand-loading or loading external resources like images, files, etc. If an incorrect value is specified you'll receive 404 errors while loading these resources.   This option specifies the public URL of the output directory when referenced in a browser. A relative URL is resolved relative to the HTML page (or tag). Server-relative URLs, protocol-relative URLs or absolute URLs are also possible and sometimes required, i. e. when hosting assets on a CDN.     The value of the option is prefixed to every URL created by the runtime or loaders. Because of this the value of this option ends with / in most cases.   The default value is an empty string "".     Simple rule: The URL of your output.path from the view of the HTML page.   path: path.resolve(__dirname, "public/assets"),   publicPath: "https://cdn.example.com/assets/"     For this configuration:   publicPath: "/assets/",   chunkFilename: "[id].chunk.js"   A request to a chunk will look like /assets/4.chunk.js.     A loader outputting HTML might emit something like this:       or when loading an image in CSS:   background-image: url(/assets/spinner.gif);     The webpack-dev-server also takes a hint from publicPath, using it to determine where to serve the output files from.  
library library string string
https://webpack.js.org/guides/author-libraries/  
libraryTarget library-target string string
restrict
var (default) When your library is loaded, the return value of your entry point will be assigned to a variable:   var MyLibrary = _entry_return_;   // your users will use your library like:   MyLibrary.doSomething();  
MyLibrary.doSomething(); this When your library is loaded, the return value of your entry point will be assigned to this, the meaning of this is up to you:   this["MyLibrary"] = _entry_return_;   // your users will use your library like:   this.MyLibrary.doSomething();   MyLibrary.doSomething(); //if this is window  
MyLibrary.doSomething(); //if this is window window When your library is load, the return value of your entry point will be part window object.   window["MyLibrary"] = _entry_return_;   //your users will use your library like:   window.MyLibrary.doSomething();  
window.MyLibrary.doSomething(); global When your library is loaded, the return value of your entry point will be part global object.   global["MyLibrary"] = _entry_return_;   //your users will use your library like:   global.MyLibrary.doSomething();  
global.MyLibrary.doSomething(); commonjs When your library is loaded, the return value of your entry point will be part of the exports object. As the name implies, this is used in CommonJS environments:   exports["MyLibrary"] = _entry_return_;   //your users will use your library like:   require("MyLibrary").doSomething();  
require("MyLibrary").doSomething(); commonjs2 When your library is loaded, the return value of your entry point will be part of the exports object. As the name implies, this is used in CommonJS environments:   module.exports = _entry_return_;   //your users will use your library like:   require("MyLibrary").doSomething();   Wondering the difference between CommonJS and CommonJS2?   Check this out https://github.com/webpack/webpack/issues/1114 (they are pretty much the same).  
Check this out https://github.com/webpack/webpack/issues/1114 (they are pretty much the same). commonjs-module Expose it using the module.exports object (output.library is ignored), __esModule is defined (it's threaded as ES2015 Module in interop mode)  
Expose it using the module.exports object (output.library is ignored), __esModule is defined (it's threaded as ES2015 Module in interop mode) amd In this case webpack will make your library an AMD module.   But there is a very important pre-requisite, your entry chunk must be defined with the define property, if not, webpack will create the AMD module, but without dependencies. The output will be something like this:   define([], function() {   //what this module returns is what your entry chunk returns   });   But if you download this script, first you may get a error: define is not defined, it’s ok! If you are distributing your library with AMD, then your users need to use RequireJS to load it.   Now that you have RequireJS loaded, you can load your library.   But, require([ _what?_ ])?   output.library!   output: {   library: "MyLibrary",   libraryTarget: "amd"   }   So your module will be like:   define("MyLibrary", [], function() {   //what this module returns is what your entry chunk returns   });   And you can use it like this:   // And then your users will be able to do:   require(["MyLibrary"], function(MyLibrary){   MyLibrary.doSomething();   });  
}); umd This is a way for your library to work with all the module definitions (and where aren't modules at all). It will work with CommonJS, AMD and as global variable. You can check the UMD Repository to know more about it.   In this case, you need the library property to name your module:   output: {   library: "MyLibrary",   libraryTarget: "umd"   }   And finally the output is:   (function webpackUniversalModuleDefinition(root, factory) {   if(typeof exports === 'object' && typeof module === 'object')   module.exports = factory();   else if(typeof define === 'function' && define.amd)   define("MyLibrary", [], factory);   else if(typeof exports === 'object')   exports["MyLibrary"] = factory();   else   root["MyLibrary"] = factory();   })(this, function() {   //what this module returns is what your entry chunk returns   });  
}); assign Here webpack will blindly generate an implied global.   MyLibrary = _entry_return_;   Be aware that if MyLibrary isn't defined earlier your library will be set in global scope.  
Be aware that if MyLibrary isn't defined earlier your library will be set in global scope. jsonp This will wrap the return value of your entry point into a jsonp wrapper.   MyLibrary(_entry_return_);   The dependencies for your library will be defined by the externals config.  
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Methods
Signature Statements
wzinitialize
set this.facets = [];
if this.path && this.path.length > 0;
if this.pathExpr && this.pathExpr.length > 0;
if this.chunkFilename && this.chunkFilename.length > 0;
if this.filename && this.filename.length > 0;
if this.publicPath && this.publicPath.length > 0;
if this.library && this.library.length > 0;
if this.libraryTarget && this.libraryTarget.length > 0;
Element Tag Super Flags
resolve resolve webpackitem
Description
https://webpack.js.org/configuration/resolve/  
Relations
Name Role Cardinality Inherited Flags Description
resolveAlias resolveAliases one-to-many
resolveExtension resolveExtensions one-to-many
resolveMainField resolveMainFields one-to-many
resolveMainFile resolveMainFiles one-to-many
resolveModule resolveModules one-to-many
resolvePlugin resolvePlugins one-to-many
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Methods
Signature Statements
wzinitialize
set this.mainFieldsOut = stringifyArrayValue(this.resolveMainFields);
set this.mainFiles = stringifyArrayValue(this.resolveMainFiles);
set this.extensionsOut = stringifyArrayValue(this.resolveExtensions);
Element Tag Super Flags
resolveAlias alias webpackitem
Attributes
Name Tag Type Default Inherited Flags Description
path path string string
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
resolveMainField main-field webpackitem
Description
When importing from an npm package, e.g. import * as D3 from "d3",   this option will determine which fields in it's package.json are checked.   The default values will vary based upon the target specified in your webpack configuration.  
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
resolveMainFile main-file webpackitem
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
resolveModule module webpackitem
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
resolvePlugin plugin webpackitem
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
resolveExtension extension webpackitem
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
module module webpackitem
Description
https://webpack.js.org/configuration/module/  
Attributes
Name Tag Type Default Inherited Flags Description
noParse no-parse regexp regexp
Prevent webpack from parsing any files matching the given regular expression(s).   Ignored files should not have calls to import, require, define or any other importing mechanism.   This can boost build performance when ignoring large libraries.   Example   noParse: /jquery|lodash/  
Relations
Name Role Cardinality Inherited Flags Description
ruleParser one-to-one is-one-to-one
moduleRule moduleRules one-to-many
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
ruleParser parser webpackitem
Description
TODO node property to customize nodejs  
Attributes
Name Tag Type Default Inherited Flags Description
amd amd boolean true
commonjs commonjs boolean true
system system boolean true
harmony harmony boolean true
requireInclude requireInclude boolean true
requireEnsure requireEnsure boolean true
requireContext requireContext boolean true
browserify browserify boolean true
requireJs requireJs boolean true
node node string string
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
moduleRule rule webpackitem
Description
In a Rule the properties test, include, exclude and resource are matched with the resource and the property issuer is matched with the issuer.  
Relations
Name Role Cardinality Inherited Flags Description
moduleRuleTest moduleRuleTests one-to-many
moduleRuleInclude moduleRuleIncludes one-to-many
moduleRuleExclude moduleRuleExcludes one-to-many
moduleRuleUse moduleRuleUses one-to-many
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Methods
Signature Statements
wzinitialize
set this.testOut = stringifyArrayValue(this.moduleRuleTests);
set this.includeOut = stringifyArrayValue(this.moduleRuleIncludes);
set this.excludeOut = stringifyArrayValue(this.moduleRuleExcludes);
Element Tag Super Flags
moduleRuleTest test webpackitem
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
moduleRuleInclude include webpackitem
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
moduleRuleExclude exclude webpackitem
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
moduleRuleUse use webpackitem
Description
A list of UseEntries which are applied to modules.   Each entry specifies a loader to be used.  
Attributes
Name Tag Type Default Inherited Flags Description
loader loader string string
Relations
Name Role Cardinality Inherited Flags Description
jsProp jsProps one-to-many properties of the 'option' property  
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
plugin plugin webpackitem
Description
https://webpack.js.org/configuration/plugins/  
Relations
Name Role Cardinality Inherited Flags Description
jsProp jsProps one-to-many
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Methods
Signature Statements
wzinitialize
set this.name = this.getTypeName(this.wzName);
getTypeName
if name === 'aggressive-merging';
else ;
Element Tag Super Flags
devServer devServer webpackitem
Attributes
Name Tag Type Default Inherited Flags Description
contentBase content-base code code
clientLogLevel log-level string string
restrict
none
none error
error warning
warning info
compress compress boolean false
historyApiFallback history-api-fallback boolean false
When using the HTML5 History API, the index.html page will likely have to be served in place of any 404 responses. Enable this by passing:   historyApiFallback: true  
host host string string
Specify a host to use. By default this is localhost. If you want your server to be accessible externally, specify it like this:   host: "0.0.0.0"  
hot hot boolean false
Enable webpack's Hot Module Replacement feature:  
hotOnly hot-only boolean false
Enables Hot Module Replacement (see devServer.hot) without page refresh as fallback in case of build failures.  
lazy lazy boolean false
When lazy is enabled, the dev-server will only compile the bundle when it gets requested. This means that webpack will not watch any file changes. We call this lazy mode.  
inline inline boolean false
noInfo no-info boolean false
With noInfo enabled, messages like the webpack bundle information that is shown when starting up and after each save, will be hidden.   Errors and warnings will still be shown.  
overlayErrors overlay-errors boolean false
Shows a full-screen overlay in the browser when there are compiler errorss.   Disabled by default. If you want to show only compiler errors:  
overlayWarnings overlay-warnings boolean false
Shows a full-screen overlay in the browser when there are compiler warnings.   Disabled by default.  
port port integer 3000
progress progress boolean false
Relations
Name Role Cardinality Inherited Flags Description
devServerProxy one-to-one is-one-to-one
stats one-to-one is-one-to-one
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Methods
Signature Statements
wzinitialize
set this.facets = [];
if this.contentBase && this.contentBase.length > 0;
if this.clientLogLevel && this.clientLogLevel.length > 0;
if this.compress;
if this.historyApiFallback;
if this.host && this.host.length > 0;
if this.hot;
if this.hotOnly;
if this.lazy;
if this.inline;
if this.noInfo;
if this.port && this.port.length > 0;
if this.progress;
Element Tag Super Flags
devServerProxy proxy webpackitem
Relations
Name Role Cardinality Inherited Flags Description
jsProp jsProps one-to-many
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
external external webpackitem
Description
https://webpack.js.org/configuration/externals/  
Relations
Name Role Cardinality Inherited Flags Description
jsProp jsProps one-to-many
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
watch watch webpackitem
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
watchOptions watch-options webpackitem
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
performance performance webpackitem
Description
https://webpack.js.org/configuration/performance/  
Attributes
Name Tag Type Default Inherited Flags Description
hints hints string false
restrict
false
false warning
warning error
maxEntrypointSize max-entry-point-size integer integer
maxAssetSize max-asset-size integer integer
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
stats stats webpackitem
Description
https://webpack.js.org/configuration/stats/  
Attributes
Name Tag Type Default Inherited Flags Description
preset preset string none
restrict
none
none errors-only
errors-only minimal
minimal false
false normal
normal verbose
assets assets boolean false
assetsSort assetsSort string string
cached cached boolean false
children children boolean false
chunks chunks boolean false
chunkModules chunkModules boolean false
chunkOrigins chunkOrigins boolean false
chunksSort chunksSort string string
context context string string
colors colors boolean false
errors errors boolean false
errorDetails errorDetails boolean false
hash hash boolean false
modules modules boolean false
modulesSort modulesSort string string
publicPath publicPath boolean false
reasons reasons boolean false
source source boolean false
timings timings boolean false
version version boolean false
warnings warnings boolean false
Relations
Name Role Cardinality Inherited Flags Description
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
jsObject { webpackitem
Relations
Name Role Cardinality Inherited Flags Description
jsProp jsProps one-to-many
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
jsArray [ webpackitem
Relations
Name Role Cardinality Inherited Flags Description
webpackitem webpackitems one-to-many
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Element Tag Super Flags
jsProp @ webpackitem
Relations
Name Role Cardinality Inherited Flags Description
webpackitem webpackitems one-to-many
property properties one-to-many webpackitem
comment comments one-to-many webpackitem
Methods
Signature Statements
wzInitialize
if this.webpackitems.length == 0;