From bbea4c3e6ba703c2e148a741ca8dd88e3303e148 Mon Sep 17 00:00:00 2001 From: f Date: Sat, 8 May 2021 16:37:37 -0300 Subject: [PATCH] =?UTF-8?q?solo=20hashear=20en=20producci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _includes/pack.html | 1 + _layouts/default.html | 2 +- webpack.config.js | 2 +- webpack.prod.js | 3 +++ 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 _includes/pack.html diff --git a/_includes/pack.html b/_includes/pack.html new file mode 100644 index 0000000..d9b0937 --- /dev/null +++ b/_includes/pack.html @@ -0,0 +1 @@ + diff --git a/_layouts/default.html b/_layouts/default.html index 84a3c6a..9b2f908 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -18,7 +18,7 @@ {% endcomment %} - + {% include_cached pack.html %} {% comment %} Agregar otras tipografías. Esto hace que las tipografías se carguen diff --git a/webpack.config.js b/webpack.config.js index e308a25..e623806 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -9,7 +9,7 @@ module.exports = { }, output: { path: __dirname, - filename: '[name].[hash].js' + filename: '[name].js' }, mode: 'development', devtool: 'inline-source-map', diff --git a/webpack.prod.js b/webpack.prod.js index 7925af1..f6bd021 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -5,6 +5,9 @@ const WebpackAssetsManifest = require('webpack-assets-manifest') module.exports = merge.merge(common, { mode: 'production', + output: { + filename: '[name].[hash].js' + }, devtool: 'source-map', plugins: [ new webpack.IgnorePlugin(/axe-core/),