0.2.0 • Published 6 years ago

source-map-warning-plugin v0.2.0

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

source-map-warning-plugin

Prevents webpack from generating source map unintentionally in production

Options

new SourceMapWarningPlugin(options: object)
NameTypeDefaultDescription
isProdBooleanfalseSpecify the runtime environment is production
envNameStringproductionthe defined NODE_ENV value that means production enviroment

Work Time

Plugin only work in production, it will check the current build process by:

  • isProd declaration in this plugin's option.\
  • NODE_ENV enviroment variable.
  • webpack.DefinePlugin's NODE_ENV defination.