mrbuilder-plugin-webpack

3.3.1 • Public • Published

This plugin is a core plugin that provides the root of the webpack support.

Options

Property Type Default Description
libraryTarget string commonjs2 Type of library to output
library string root library name
mainFields bool or array true Main fieds [source,browser,main]
app string Directory to build app (not library)
demo string Directory to build demo (not library)
entry object {index:src/index.js} Entry point
outputPath string dist where to put built library
useExternals bool true use externals
externals string libraries to use as externals
externalizePeers bool true Make peerDependencies external
devtool string source-maps A dev tool
filename string [name].[hash].js Name the javascript files
alias array [react,react-dom] Create alias's so only 1 version is used
node object Maps to webpack.node
extensions array [.js,.jsx,.json] Add extensions
public string "" The "publicPath" options in webpack
useTarget string "web" The target property in webpac
noParse regex A pattern for webpack not to parse
globalThis string The object to use for global, 'this' works server and browser

Readme

Keywords

none

Package Sidebar

Install

npm i mrbuilder-plugin-webpack

Weekly Downloads

3

Version

3.3.1

License

0BSD

Unpacked Size

16.2 kB

Total Files

7

Last publish

Collaborators

  • nanandn
  • speajus-root