From f9392a44ddafec9e801c87e7cc5bc125182ecfe0 Mon Sep 17 00:00:00 2001 From: Tony Air Date: Fri, 11 Sep 2020 01:42:55 +0700 Subject: [PATCH] IMPR: Minor updates --- webpack.config.dev.js | 4 ++++ webpack.config.prod.js | 3 +++ 2 files changed, 7 insertions(+) diff --git a/webpack.config.dev.js b/webpack.config.dev.js index f841334..8994568 100755 --- a/webpack.config.dev.js +++ b/webpack.config.dev.js @@ -12,7 +12,9 @@ const conf = commonVariables.configuration; const IP = process.env.IP || conf.HOSTNAME; const PORT = process.env.PORT || conf.PORT; + const UIInfo = require('./node_modules/@a2nt/ss-bootstrap-ui-webpack-boilerplate/package.json'); +const UIMetaInfo = require('./node_modules/@a2nt/meta-lightbox/package.json'); const config = merge(common, { mode: 'development', @@ -94,6 +96,8 @@ const config = merge(common, { UINAME: JSON.stringify(UIInfo.name), UIVERSION: JSON.stringify(UIInfo.version), UIAUTHOR: JSON.stringify(UIInfo.author), + UIMetaNAME: JSON.stringify(UIMetaInfo.name), + UIMetaVersion: JSON.stringify(UIMetaInfo.version), }), ], diff --git a/webpack.config.prod.js b/webpack.config.prod.js index ce82e40..729db07 100755 --- a/webpack.config.prod.js +++ b/webpack.config.prod.js @@ -22,6 +22,7 @@ const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin'); const COMPRESS = true; const UIInfo = require('./node_modules/@a2nt/ss-bootstrap-ui-webpack-boilerplate/package.json'); +const UIMetaInfo = require('./node_modules/@a2nt/meta-lightbox/package.json'); console.log('WebP images: ' + conf['webp']); @@ -33,6 +34,8 @@ let plugins = [ UINAME: JSON.stringify(UIInfo.name), UIVERSION: JSON.stringify(UIInfo.version), UIAUTHOR: JSON.stringify(UIInfo.author), + UIMetaNAME: JSON.stringify(UIMetaInfo.name), + UIMetaVersion: JSON.stringify(UIMetaInfo.version), }), new webpack.LoaderOptionsPlugin({ minimize: true,