generator-reshow 0.17.41 → 0.17.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,14 +12,14 @@ WEBPACK_SERVER_CONFIG="--config webpack.server.mjs"
12
12
  cd $DIR
13
13
  webpackEnabled=$([ -e "$YO_CONFIG" ] && awk -F "=" '/^webpackEnabled/ {print $2}' $YO_CONFIG)
14
14
  serverEnabled=$([ -e "$YO_CONFIG" ] && awk -F "=" '/^serverEnabled/ {print $2}' $YO_CONFIG)
15
+ assetsRoot=$([ -e "$YO_CONFIG" ] && awk -F "=" '/^assetsRoot/ {print $2}' $YO_CONFIG)
15
16
  HTDOCS=${DIR}$([ -e "$YO_CONFIG" ] && awk -F "=" '/^HTDOCS/ {print $2}' $YO_CONFIG)
16
17
  SWJS=${HTDOCS}/service-worker.js
17
-
18
18
  if [ ! -z "$CHK_PHP" ] && [ -s "$PHP_CONFIG" ]; then
19
19
  conf=`DUMP=cli php -r "include('$PHP_CONFIG');"`
20
20
  else
21
21
  conf='{'
22
- conf+='"assetsRoot":"./assets/",'
22
+ conf+='"assetsRoot":"'${assetsRoot:-"./assets/"}'",'
23
23
  conf+='"externals":{},'
24
24
  if [ -z "$serverEnabled" ]; then
25
25
  conf+='"indexTpl":"'${DIR}/index.tpl'",'
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.17.41",
2
+ "version": "0.17.42",
3
3
  "name": "generator-reshow",
4
4
  "repository": {
5
5
  "type": "git",