@pixolith/webpack-sw6-config 6.0.6 → 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.
|
|
4
|
+
"version": "6.1.1",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"scripts": {},
|
|
@@ -21,11 +21,12 @@
|
|
|
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": "
|
|
24
|
+
"gitHead": "02eecbeccef698937d5930a1ed9ef2e0a5abddf5",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/core": "^7.16.12",
|
|
27
27
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
28
28
|
"@babel/plugin-proposal-object-rest-spread": "^7.16.7",
|
|
29
|
+
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
|
|
29
30
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
30
31
|
"@babel/plugin-transform-classes": "^7.16.7",
|
|
31
32
|
"@babel/plugin-transform-runtime": "^7.16.10",
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
"@pixolith/webpack-assets-copy-plugin": "^6.0.1",
|
|
37
38
|
"@pixolith/webpack-filename-linter-plugin": "^6.0.1",
|
|
38
39
|
"@pixolith/webpack-hook-plugin": "^6.0.1",
|
|
39
|
-
"@pixolith/webpack-twig-assets-emitter-plugin": "^6.0
|
|
40
|
+
"@pixolith/webpack-twig-assets-emitter-plugin": "^6.1.0",
|
|
40
41
|
"@pixolith/webpack-watcher": "^6.0.1",
|
|
41
42
|
"autoprefixer": "^9.7.4",
|
|
42
43
|
"babel-eslint": "^10.0.3",
|
package/src/babel.config.js
CHANGED
|
@@ -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
|
-
|
|
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 =
|
|
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
|
-
|
|
211
|
+
spritePath,
|
|
211
212
|
),
|
|
212
213
|
spritOutputFilename = '_sprite.svg';
|
|
213
214
|
|