# @webpackon/core

> Webpackon core

Latest version **1.1.6** (published 2022-11-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @webpackon/core
pnpm add @webpackon/core
yarn add @webpackon/core
bun add @webpackon/core
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.6 |
| Published | 2022-11-01 |
| First published | 2021-12-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 29.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | AndTem |
| Maintainers | and_tem |
| Keywords | webpackon, webpack, webpack 5, webpack config, webpack-config, webpackon core |

## Links

- npm: https://www.npmjs.com/package/@webpackon/core
- Repository: https://github.com/AndTem/webpackon
- Homepage: https://github.com/AndTem/webpackon/tree/master/packages/core#Readme
- Issues: https://github.com/AndTem/webpackon/issues
- npm.io page: https://npm.io/package/@webpackon/core

## Dependencies (4)

- [ramda](https://npm.io/package/ramda.md) 0.27.1
- [@types/ramda](https://npm.io/package/@types/ramda.md) 0.27.44
- [webpack-merge](https://npm.io/package/webpack-merge.md) 5.8.0
- [@types/webpack](https://npm.io/package/@types/webpack.md) ^5.28.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.1.6 (latest) — 2022-11-01
- 1.1.5 — 2022-05-23
- 1.1.4 — 2022-05-19
- 1.1.3 — 2022-03-21
- 1.1.2 — 2022-01-27
- 1.1.1 — 2022-01-26
- 1.1.0 — 2022-01-24
- 1.0.0 — 2021-12-08

## README

<p align="center">
  <img src='https://raw.githubusercontent.com/AndTem/webpackon/master/images/logo.svg' height='120' width='120'>
</p>
<p align="center">
  <a href="https://github.com/AndTem/webpackon#readme">Webpackon</a>
</p>

# @webpackon/core
Utils collection for webpackon.

## Install
```shell
npm i @webpackon/core --save
```

```shell
yarn add @webpackon/core
```

## Utils

### compose
Used for composition webpackon decorators. Decorators applied from right to left or upwards.

#### Example

```js
const path = require('path');

const { compose } = require('@webpackon/core');
const { useCss } = require('@webpackon/use-css');
const { useBabel } = require('@webpackon/use-babel');

module.exports = (_, { mode }) =>
  compose(
    useCss({ mode }),
    useBabel()
  )({
    target: 'web',
    entry: path.resolve(__dirname, 'src', 'index.jsx'),
  });
```

### isProduction

#### Example

```js
const path = require('path');

const { compose, isProduction } = require('@webpackon/core');
const { useCss } = require('@webpackon/use-css');
const { useBabel } = require('@webpackon/use-babel');

module.exports = (_, { mode }) =>
  compose(
    useCss({ mode }),
    useBabel()
  )({
    target: 'web',
    entry: path.resolve(__dirname, 'src', 'index.jsx'),
    output: {
			clean: isProduction(mode)
    }
  });
```

### isDevelopment

#### Example

```js
const path = require('path');

const { compose, isDevelopment } = require('@webpackon/core');
const { useCss } = require('@webpackon/use-css');
const { useBabel } = require('@webpackon/use-babel');

module.exports = (_, { mode }) =>
  compose(
    useCss({ mode }),
    useBabel()
  )({
    target: 'web',
    entry: path.resolve(__dirname, 'src', 'index.jsx'),
    output: {
			clean: !isProduction(mode)
    }
  });
```

---
_Source: https://npm.io/package/@webpackon/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
