# html-webpack-noscript-plugin

> Webpack plugin to add to body

Latest version **1.0.0** (published 2021-02-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install html-webpack-noscript-plugin
pnpm add html-webpack-noscript-plugin
yarn add html-webpack-noscript-plugin
bun add html-webpack-noscript-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.0.0 |
| Published | 2021-02-09 |
| First published | 2021-02-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Constantine Genchevsky |
| Maintainers | constgen |
| Keywords | webpack, plugin, html, noscript |

## Links

- npm: https://www.npmjs.com/package/html-webpack-noscript-plugin
- Repository: https://github.com/constgen/html-webpack-noscript-plugin
- Homepage: https://github.com/constgen/html-webpack-noscript-plugin#readme
- Issues: https://github.com/constgen/html-webpack-noscript-plugin/issues
- npm.io page: https://npm.io/package/html-webpack-noscript-plugin

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-02-09

## README

# html-webpack-noscript-plugin

[![NPM version][npm-image]][npm-url]
[![NPM downloads][npm-downloads]][npm-url]
[![NPM Package][workflow-status]][actions]

Webpack Plugin that extends HtmlWebpackPlugin template with `<noscript>` tag with arbitrary HTML content inside

## Installation

`html-webpack-noscript-plugin` can be installed using NPM. Inside your project, make sure `html-webpack-plugin` is a development dependency.

```bash
npm install --save-dev html-webpack-plugin html-webpack-noscript-plugin
```

## Setup

This plugin should go after `HtmlWebpackPlugin` in the `plugins` config

**webpack.config.js**

```js
let HtmlWebpackPlugin         = require('html-webpack-plugin')
let HtmlWebpackNoscriptPlugin = require('html-webpack-noscript-plugin')

const DISABLED_JAVASCRIPT_MESSAGE = `We're sorry but our app doesn't work properly <b>without JavaScript enabled</b>. Please enable it to continue.`

module.exports = {
   plugins: [
      new HtmlWebpackPlugin(),
      new HtmlWebpackNoscriptPlugin(DISABLED_JAVASCRIPT_MESSAGE)
   ]
}
```

This will affect the compiled HTML file

**index.html**

```html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Webpack App</title>
  </head>
  <body>
    <noscript>We're sorry but our app doesn't work properly <b>without JavaScript enabled</b>. Please enable it to continue.</noscript>
    <script src="index_bundle.js"></script>
  </body>
</html>
```

[npm-image]: https://img.shields.io/npm/v/html-webpack-noscript-plugin.svg
[npm-downloads]: https://img.shields.io/npm/dt/html-webpack-noscript-plugin.svg
[npm-url]: https://npmjs.org/package/html-webpack-noscript-plugin
[actions]: https://github.com/constgen/html-webpack-noscript-plugin/actions
[workflow-status]: https://github.com/constgen/html-webpack-noscript-plugin/workflows/NPM%20Package/badge.svg?branch=main

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