@mrbuilder/plugin-webpack
TypeScript icon, indicating that this package has built-in type declarations

4.4.7-alpha.9 • 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 string[] true
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 lib 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 string[] [react,react-dom] Create alias's so only 1 version is used
node object Maps to webpack.node
extensions string[] [.js,.jsx,.json] Add extensions (depreacted use cli.extensions)
public string "" The "publicPath" options in webpack
useTarget string "web" The target property in webpack
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

12

Version

4.4.7-alpha.9

License

MIT

Unpacked Size

46.4 kB

Total Files

27

Last publish

Collaborators

  • speajus
  • nanandn
  • brycereynolds