0.2.0 • Published 8 years ago
source-map-warning-plugin v0.2.0
source-map-warning-plugin
Prevents webpack from generating source map unintentionally in production
Options
new SourceMapWarningPlugin(options: object)| Name | Type | Default | Description | 
|---|---|---|---|
| isProd | Boolean | false | Specify the runtime environment is production | 
| envName | String | production | the defined NODE_ENVvalue that means production enviroment | 
Work Time
Plugin only work in production, it will check the current build process by:
- isProddeclaration in this plugin's option.\
- NODE_ENVenviroment variable.
- webpack.DefinePlugin's- NODE_ENVdefination.
0.2.0
8 years ago