mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-22 00:40:26 +08:00
Suppress logging with NODE_ENV (#332)
This commit is contained in:
@@ -24,6 +24,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
import webpack from 'webpack';
|
||||
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
|
||||
import DuplicatePackageCheckerPlugin from 'duplicate-package-checker-webpack-plugin';
|
||||
import WebpackRequireFrom from 'webpack-require-from';
|
||||
@@ -47,6 +48,8 @@ export default {
|
||||
);
|
||||
} },
|
||||
new WebpackRequireFrom({ methodName: '__webpackDynamicImportURL', suppressErrors: true }),
|
||||
// Pass the env in for logging
|
||||
new webpack.EnvironmentPlugin({ NODE_ENV: 'development' }),
|
||||
// Analyze the bundle
|
||||
new BundleAnalyzerPlugin({ analyzerMode: 'static', openAnalyzer: false }),
|
||||
new DuplicatePackageCheckerPlugin(),
|
||||
|
Reference in New Issue
Block a user