Commit bbea4c3e authored by f's avatar f
Browse files

solo hashear en producción

parent 0164ea24
<script defer src="{{ jekyll.production | ternary: site.data.assets['assets/js/pack.js'], 'assets/js/pack.js' }}"></script>
......@@ -18,7 +18,7 @@
{% endcomment %}
<link rel="preload" as="script" type="text/javascript" href="env.js" />
<script type="text/javascript" src="env.js"></script>
<script defer type="text/javascript" src="{{ site.data.assets['assets/js/pack.js'] }}"></script>
{% include_cached pack.html %}
{% comment %}
Agregar otras tipografías. Esto hace que las tipografías se carguen
......
......@@ -9,7 +9,7 @@ module.exports = {
},
output: {
path: __dirname,
filename: '[name].[hash].js'
filename: '[name].js'
},
mode: 'development',
devtool: 'inline-source-map',
......
......@@ -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/),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment