Skip to content

Commit 60c3a98

Browse files
Support DROP_CONSOLE.
1 parent 77ef27c commit 60c3a98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-scripts/config/webpack.config.prod.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ module.exports = {
159159
// Pending futher investigation:
160160
// https://github.com/terser-js/terser/issues/120
161161
inline: 2,
162+
drop_console: Boolean(env.raw.REACT_APP_DROP_CONSOLE === 'true'),
162163
},
163164
mangle: {
164165
safari10: true,
@@ -322,7 +323,7 @@ module.exports = {
322323
// @remove-on-eject-end
323324
plugins: [
324325
[
325-
require.resolve('babel-plugin-named-asset-import'),
326+
require.resolve('@bradfordlemley/babel-plugin-named-asset-import'),
326327
{
327328
loaderMap: {
328329
svg: {

0 commit comments

Comments
 (0)