Socket
Socket
Sign inDemoInstall

@packmule/core

Package Overview
Dependencies
Maintainers
2
Versions
189
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@packmule/core

Stubborn configuration generator for webpack.


Version published
Weekly downloads
9
decreased by-75.68%
Maintainers
2
Weekly downloads
 
Created
Source

packmule core npm-latest

Stubborn configuration generator for Webpack.

Overview

Setup

Either install @packmule/core and needed packs individually or install one of the available packmule editions which bundle various packages/packs for faster usage.

Current Release

npm install --save-dev @packmule/core

Nightly Build

npm install --save-dev @packmule/core@nightly

API

Methods

Packmule(mode?: 'development' | 'production' | 'none', options?: Options, hints?: Hints)
Instantiate a new packmule object.

add(pack: Pack, hints?: Hints)
Add a pack for configuration generation.

remove(pack: Pack)
Remove a pack from configuration generation.

generate(pack?: Pack, hints?: Hints)
Generate the final webpack configuration or optionally the configuration for a specific pack instance.

Options

OptionTypeDefaultDescription
modestring'none'Sets the mode for webpack.
rootstringcwdSets the project root directory.
debugbooleanfalseEnables debugging.

Hints

Hints are passed to and used by packs to indicate which internal tasks to run. Packs can choose which hints to use i.e. packs often use a small subset of available hints.

HintDescription
optimizeEnables optimization steps.
extractEnables file extraction.
notifyEnables desktop notifications.
lintEnables code linting.
fixEnables code fixing.
mapEnables source maps.
cacheEnables caching.
hashEnables filename hashing.
watchEnables file watching.

Presets

Each mode (none, development, production) has an internal hints preset, e.g. for production mode the options optimize, extract and hash are enabled while all other hints are disabled. Hints can be overridden by passing them to the constructor directly.

Hintnonedevelopmentproduction
optimizefalsefalsetrue
extractfalsefalsetrue
notifyfalsetruefalse
lintfalsetruefalse
fixfalsetruefalse
mapfalsetruefalse
cachefalsetruefalse
hashfalsefalsetrue
watchfalsefalsefalse

License

MIT


Keywords

FAQs

Package last updated on 01 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc