Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@packmule/core
Advanced tools
Stubborn configuration generator for Webpack.
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
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.
Option | Type | Default | Description |
---|---|---|---|
mode | string | 'none' | Sets the mode for webpack. |
root | string | cwd | Sets the project root directory. |
debug | boolean | false | Enables debugging. |
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.
Hint | Description |
---|---|
optimize | Enables optimization steps. |
extract | Enables file extraction. |
notify | Enables desktop notifications. |
lint | Enables code linting. |
fix | Enables code fixing. |
map | Enables source maps. |
cache | Enables caching. |
hash | Enables filename hashing. |
watch | Enables file watching. |
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.
Hint | none | development | production |
---|---|---|---|
optimize | false | false | true |
extract | false | false | true |
notify | false | true | false |
lint | false | true | false |
fix | false | true | false |
map | false | true | false |
cache | false | true | false |
hash | false | false | true |
watch | false | false | false |
FAQs
Stubborn configuration generator for webpack.
We found that @packmule/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.