This will help you to remove console.log and comments from typescript or javascript files using webpack 4
webpack remove console.log
npm i npm install uglifyjs-webpack-plugin --save-dev| const atob = a => Buffer.from(a, 'base64').toString('binary') | |
| module.exports = { atob } |
| <apex:page> | |
| <head> | |
| <script src="{!$Resource.jquery224}"></script> <!-- https://jquery.com/ --> | |
| <script src="{!$Resource.jsforce170}"></script> <!-- https://jsforce.github.io/ --> | |
| <script>$j = jQuery.noConflict();</script> | |
| </head> | |
| <body> | |
| <form> |
| /* | |
| Usage: | |
| 1. If you have an XML file URL: | |
| const response = await fetch('file_url'); | |
| const xmlString = await response.text(); | |
| var XmlNode = new DOMParser().parseFromString(xmlString, 'text/xml'); | |
| xmlToJson(XmlNode); |
This will help you to remove console.log and comments from typescript or javascript files using webpack 4
webpack remove console.log
npm i npm install uglifyjs-webpack-plugin --save-dev| -------------------------------------------------------------------- | |
| -- Queries related to distribution of metadata. | |
| -- Find the number of users per profile. | |
| SELECT count(id), Profile.name | |
| FROM User | |
| WHERE User.IsActive = true | |
| GROUP BY Profile.name | |
| -- Find the distribution of Apex classes per namespace. | |
| select count(id), NameSpacePrefix |