From 679bdc623503623649b8dc38968f164c71c6c880 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Fri, 18 Nov 2022 00:31:45 +0100 Subject: [PATCH] refs #3971 Source maps disabled --- app.js | 2 +- debian/changelog | 2 +- package.json | 2 +- webpack.config.js | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app.js b/app.js index 2cc62de5..dc8b10cc 100644 --- a/app.js +++ b/app.js @@ -1,6 +1,6 @@ __webpack_public_path__ = _PUBLIC_PATH; -//import 'promise-polyfill/src/polyfill'; +import 'promise-polyfill/src/polyfill'; import 'hedera/hedera'; const locales = require('./import').locales; const packageJson = require('./package.json'); diff --git a/debian/changelog b/debian/changelog index ce9e61cb..e8e7fb80 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (22.46.1) stable; urgency=low +hedera-web (22.46.2) stable; urgency=low * Initial Release. diff --git a/package.json b/package.json index 91ae6ce0..5f7440b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hedera-web", - "version": "22.46.1", + "version": "22.46.2", "description": "Verdnatura web page", "license": "GPL-3.0", "repository": { diff --git a/webpack.config.js b/webpack.config.js index 030f67d8..ef96cf9e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -18,7 +18,7 @@ const baseConfig = { }, module: { rules: [ - /*{ + { test: /\.m?js$/, exclude: /(node_modules|bower_components)/, use: { @@ -27,7 +27,7 @@ const baseConfig = { presets: ['@babel/preset-env'] } } - },*/ { + }, { test: /\.css$/, use: ['style-loader', 'css-loader'], }, { @@ -95,7 +95,7 @@ const prodConfig = { optimization: { moduleIds: 'deterministic' }, - devtool: 'source-map' + //devtool: 'source-map' }; const devConfig = { @@ -106,6 +106,7 @@ const devConfig = { optimization: { moduleIds: 'named' }, + devtool: 'eval', devServer: { host: '0.0.0.0', static: __dirname, @@ -119,8 +120,7 @@ const devConfig = { bypass: (req) => req.path !== '/' ? req.path : null } } - }, - devtool: 'eval' + } }; const mrgConfig = devMode ? devConfig : prodConfig;