mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
IMPR: Minor updates
This commit is contained in:
parent
ed004f1cfe
commit
f9392a44dd
@ -12,7 +12,9 @@ const conf = commonVariables.configuration;
|
|||||||
|
|
||||||
const IP = process.env.IP || conf.HOSTNAME;
|
const IP = process.env.IP || conf.HOSTNAME;
|
||||||
const PORT = process.env.PORT || conf.PORT;
|
const PORT = process.env.PORT || conf.PORT;
|
||||||
|
|
||||||
const UIInfo = require('./node_modules/@a2nt/ss-bootstrap-ui-webpack-boilerplate/package.json');
|
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, {
|
const config = merge(common, {
|
||||||
mode: 'development',
|
mode: 'development',
|
||||||
@ -94,6 +96,8 @@ const config = merge(common, {
|
|||||||
UINAME: JSON.stringify(UIInfo.name),
|
UINAME: JSON.stringify(UIInfo.name),
|
||||||
UIVERSION: JSON.stringify(UIInfo.version),
|
UIVERSION: JSON.stringify(UIInfo.version),
|
||||||
UIAUTHOR: JSON.stringify(UIInfo.author),
|
UIAUTHOR: JSON.stringify(UIInfo.author),
|
||||||
|
UIMetaNAME: JSON.stringify(UIMetaInfo.name),
|
||||||
|
UIMetaVersion: JSON.stringify(UIMetaInfo.version),
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
|
|||||||
const COMPRESS = true;
|
const COMPRESS = true;
|
||||||
|
|
||||||
const UIInfo = require('./node_modules/@a2nt/ss-bootstrap-ui-webpack-boilerplate/package.json');
|
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']);
|
console.log('WebP images: ' + conf['webp']);
|
||||||
|
|
||||||
@ -33,6 +34,8 @@ let plugins = [
|
|||||||
UINAME: JSON.stringify(UIInfo.name),
|
UINAME: JSON.stringify(UIInfo.name),
|
||||||
UIVERSION: JSON.stringify(UIInfo.version),
|
UIVERSION: JSON.stringify(UIInfo.version),
|
||||||
UIAUTHOR: JSON.stringify(UIInfo.author),
|
UIAUTHOR: JSON.stringify(UIInfo.author),
|
||||||
|
UIMetaNAME: JSON.stringify(UIMetaInfo.name),
|
||||||
|
UIMetaVersion: JSON.stringify(UIMetaInfo.version),
|
||||||
}),
|
}),
|
||||||
new webpack.LoaderOptionsPlugin({
|
new webpack.LoaderOptionsPlugin({
|
||||||
minimize: true,
|
minimize: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user