Razzle plugin to disabled Sourcemaps CSS and JS on Production build

License: MIT

Language: JavaScript

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: [


  • devtool (default: cheap-module-eval-source-map)
    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 for more information.

Project Statistics

Sourcerank 3
Repository Size 19.5 KB
Stars 0
Forks 0
Watchers 1
Open issues 0
Dependencies 148
Contributors 1
Tags 0
Last updated
Last pushed

Top Contributors See all

Fin Mavis

Packages Referencing this Repo

Razzle plugin to disable source maps CSS and JS on Production
Latest release 1.0.0 - Published

Something wrong with this page? Make a suggestion

Last synced: 2019-09-14 12:17:08 UTC

Login to resync this repository