# razzle-plugin-disable-sourcemaps-production

> Razzle plugin to disable source maps CSS and JS on Production

Latest version **1.0.0** (published 2019-09-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install razzle-plugin-disable-sourcemaps-production
pnpm add razzle-plugin-disable-sourcemaps-production
yarn add razzle-plugin-disable-sourcemaps-production
bun add razzle-plugin-disable-sourcemaps-production
```

## 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 | 2019-09-14 |
| First published | 2019-09-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Fin Mavis |
| Maintainers | finmavis |
| Keywords | razzle, plugin, disable, sourcemaps, production, .map.js, .map.css |

## Links

- npm: https://www.npmjs.com/package/razzle-plugin-disable-sourcemaps-production
- Repository: https://github.com/finmavis/razzle-plugin-disable-sourcemaps-production
- Homepage: https://github.com/finmavis/razzle-plugin-disable-sourcemaps-production#readme
- Issues: https://github.com/finmavis/razzle-plugin-disable-sourcemaps-production/issues
- npm.io page: https://npm.io/package/razzle-plugin-disable-sourcemaps-production

## Dependencies (2)

- [postcss-safe-parser](https://npm.io/package/postcss-safe-parser.md) ^4.0.1
- [optimize-css-assets-webpack-plugin](https://npm.io/package/optimize-css-assets-webpack-plugin.md) ^5.0.3

## 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.0.0 (latest) — 2019-09-14

## README

# Razzle Plugin Disable Sourcemaps Production

This package contains a plugin to disable Sourcemaps CSS and JS on Production build with Razzle.

## Usage in Razzle Projects

- Install `razzle-plugin-disable-sourcemaps-production`

  if you're using `yarn`

  ```
  yarn add razzle-plugin-disable-sourcemaps-production --dev
  ```

  if you're using `npm`

  ```
  npm install razzle-plugin-disable-sourcemaps-production --save-dev
  ```

- create a `razzle.config.js` file in root directory of project (next to the package.json) and put this content inside it

  ```
  // razzle.config.js
  module.exports = {
    plugins: [
      'disable-sourcemaps-production'
    ],
  };
  ```

## Options

- devtool (default: `cheap-module-eval-source-map`) <br>
  You can change the `devtool` on Development mode with the option `devtool`, but will be disable on `Production`:

  ```
  // razzle.config.js
  module.exports = {
    plugins: [
      {
        name: 'disable-sourcemaps-production',
        options: {
          devtool: 'eval'
        }
      }
    ],
  };
  ```

See [Webpack Devtool Docs](https://webpack.js.org/configuration/devtool/#devtool) for more information.

---
_Source: https://npm.io/package/razzle-plugin-disable-sourcemaps-production · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
