@pixolith/webpack-sw6-config 6.1.0 → 6.1.1

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pixolith/webpack-sw6-config",
3
3
  "public": true,
4
- "version": "6.1.0",
4
+ "version": "6.1.1",
5
5
  "description": "",
6
6
  "main": "src/index.js",
7
7
  "scripts": {},
@@ -21,7 +21,7 @@
21
21
  "url": "https://github.com/pixolith/webpack-plugins/issues"
22
22
  },
23
23
  "homepage": "https://github.com/pixolith/webpack-plugins/tree/master/packages/webpack-hook-plugin/#readme",
24
- "gitHead": "150f7be4ac38fe9f487918e61be4d1fcf22a72f8",
24
+ "gitHead": "02eecbeccef698937d5930a1ed9ef2e0a5abddf5",
25
25
  "dependencies": {
26
26
  "@babel/core": "^7.16.12",
27
27
  "@babel/plugin-proposal-class-properties": "^7.16.7",
@@ -4,6 +4,7 @@ const Path = require('path'),
4
4
  changeCase = require('change-case'),
5
5
  entry = require('webpack-glob-entry'),
6
6
  publicPath = process.env.PUBLIC_PATH,
7
+ spritePath = process.env.SPRITE_PATH ?? 'custom/plugins/PxswTheme/src/Resources/views/administration';
7
8
  ExtractCssChunks = require('extract-css-chunks-webpack-plugin'),
8
9
  AssetsCopyPlugin = require('@pixolith/webpack-assets-copy-plugin'),
9
10
  isProd = process.env.NODE_ENV === 'production',
@@ -174,7 +175,7 @@ module.exports = {
174
175
  );
175
176
  let spriteOutputPath = Path.join(
176
177
  process.cwd(),
177
- 'custom/plugins/PxswTheme/src/Resources/views/administration',
178
+ spritePath,
178
179
  ),
179
180
  spritOutputFilename = '_sprite.svg';
180
181
 
@@ -3,6 +3,7 @@ const Path = require('path'),
3
3
  ExtractCssChunks = require('extract-css-chunks-webpack-plugin'),
4
4
  privatePath = process.env.PLUGIN_PATH,
5
5
  vendorPath = process.env.VENDOR_PATH,
6
+ spritePath = process.env.SPRITE_PATH ?? 'custom/plugins/PxswTheme/src/Resources/views/storefront';
6
7
  ChangeCase = require('change-case'),
7
8
  Consola = require('consola'),
8
9
  TwigAssetEmitterPlugin = require('@pixolith/webpack-twig-assets-emitter-plugin'),
@@ -10,7 +11,7 @@ const Path = require('path'),
10
11
  isProd = process.env.NODE_ENV === 'production',
11
12
  isModern = process.env.MODE === 'modern',
12
13
  SvgStorePlugin = require('@pixolith/external-svg-sprite-loader'),
13
- publicPath = 'public',
14
+ publicPath = process.env.PUBLIC_PATH,
14
15
  ASSET_URL = process.env.ASSET_URL || '/',
15
16
  HookPlugin = require('@pixolith/webpack-hook-plugin'),
16
17
  outputConfig = {
@@ -207,7 +208,7 @@ module.exports = {
207
208
  );
208
209
  let spriteOutputPath = Path.join(
209
210
  process.cwd(),
210
- 'custom/plugins/PxswTheme/src/Resources/views/storefront',
211
+ spritePath,
211
212
  ),
212
213
  spritOutputFilename = '_sprite.svg';
213
214