From beac3f69a6f5cbd23f3e3812958ea49e8c06207c Mon Sep 17 00:00:00 2001 From: Victor Bocharsky Date: Mon, 24 Jun 2019 13:16:20 +0300 Subject: [PATCH] Enable integrity hashes on production only by default --- symfony/webpack-encore-bundle/1.0/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symfony/webpack-encore-bundle/1.0/webpack.config.js b/symfony/webpack-encore-bundle/1.0/webpack.config.js index 06595d37..ad8163f9 100644 --- a/symfony/webpack-encore-bundle/1.0/webpack.config.js +++ b/symfony/webpack-encore-bundle/1.0/webpack.config.js @@ -61,7 +61,7 @@ Encore // uncomment to get integrity="..." attributes on your script & link tags // requires WebpackEncoreBundle 1.4 or higher - //.enableIntegrityHashes() + //.enableIntegrityHashes(Encore.isProduction()) // uncomment if you're having problems with a jQuery plugin //.autoProvidejQuery()