1.0.0 • Published 6 years ago
razzle-plugin-disable-sourcemaps-production v1.0.0
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-productionif you're using
yarnyarn add razzle-plugin-disable-sourcemaps-production --devif you're using
npmnpm install razzle-plugin-disable-sourcemaps-production --save-devcreate a
razzle.config.jsfile 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 thedevtoolon 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.
1.0.0
6 years ago