razzle-plugin-disable-sourcemaps-production
v1.0.0
Published
Razzle plugin to disable source maps CSS and JS on Production
Downloads
381
Maintainers
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
) You can change thedevtool
on Development mode with the optiondevtool
, but will be disable onProduction
:// razzle.config.js module.exports = { plugins: [ { name: 'disable-sourcemaps-production', options: { devtool: 'eval' } } ], };
See Webpack Devtool Docs for more information.