# emotion-webpack-entrypoints-plugin

> This is a webpack plugin that allows you to get all the entrypoints and insert them into your markup.

Latest version **1.2.1** (published 2020-11-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install emotion-webpack-entrypoints-plugin
pnpm add emotion-webpack-entrypoints-plugin
yarn add emotion-webpack-entrypoints-plugin
bun add emotion-webpack-entrypoints-plugin
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2020-11-04 |
| First published | 2020-11-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | emotion-agency |
| Maintainers | emotionagency |
| Keywords | webpack, entrypoints |

## Links

- npm: https://www.npmjs.com/package/emotion-webpack-entrypoints-plugin
- Repository: https://github.com/letmewin22/EntrypointsPlugin
- Homepage: https://github.com/letmewin22/EntrypointsPlugin#readme
- Issues: https://github.com/letmewin22/EntrypointsPlugin/issues
- npm.io page: https://npm.io/package/emotion-webpack-entrypoints-plugin

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.2.1 (latest) — 2020-11-04
- 1.2.0 — 2020-11-04
- 1.1.0 — 2020-11-04
- 1.0.2 — 2020-11-02
- 1.0.1 — 2020-11-02
- 1.0.0 — 2020-11-02

## README

# What is this?

This is a webpack plugin that allows you to get all the entrypoints and insert them into your markup.

# Instalation

`npm i -D emotion-webpack-entrypoints-plugin`

or

`yarn add --dev emotion-webpack-entrypoints-plugin`

# Usage

```
const EntrypointsPlugin = require('emotion-webpack-entrypoints-plugin')

plugins: [
  new EntrypointsPlugin({
    dir: [folder with html],
    path: [path to your scripts]
  })
]
```
**You must have a wrapper for scripts in HTML**

```
HTML:
  <!-- BEGIN scripts -->
  <!-- END scripts -->
```

# Example

### webpack

```
const path = require('path')
const EntrypointsPlugin = require('emotion-webpack-entrypoints-plugin')

plugins: [
  new EntrypointsPlugin({
    dir: path.resolve(__dirname, 'src/templates/layouts'),
    path: './js'
  })
]
```

### HTML input

```
 <!-- BEGIN scripts -->
 <!-- END scripts -->
```

### HTML output

```
<!-- BEGIN scripts -->
  <script src="./js/vendors~app.js"></script> 
  <script src="./js/app.js"></script>
<!-- END scripts -->
```

---
_Source: https://npm.io/package/emotion-webpack-entrypoints-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
