@pixolith/webpack-sw6-config 6.1.1 → 6.1.2

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.1",
4
+ "version": "6.1.2",
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": "02eecbeccef698937d5930a1ed9ef2e0a5abddf5",
24
+ "gitHead": "d04a0e3b3b31fcdebae568a69dcb33a38cc113b2",
25
25
  "dependencies": {
26
26
  "@babel/core": "^7.16.12",
27
27
  "@babel/plugin-proposal-class-properties": "^7.16.7",
@@ -3,7 +3,7 @@ const Path = require('path'),
3
3
  privatePath = process.env.PLUGIN_PATH,
4
4
  changeCase = require('change-case'),
5
5
  entry = require('webpack-glob-entry'),
6
- publicPath = process.env.PUBLIC_PATH,
6
+ publicPath = 'public',
7
7
  spritePath = process.env.SPRITE_PATH ?? 'custom/plugins/PxswTheme/src/Resources/views/administration';
8
8
  ExtractCssChunks = require('extract-css-chunks-webpack-plugin'),
9
9
  AssetsCopyPlugin = require('@pixolith/webpack-assets-copy-plugin'),
@@ -109,9 +109,9 @@ module.exports = {
109
109
  {
110
110
  loader: SvgStorePlugin.loader,
111
111
  options: {
112
- name: 'sprite/sprite.svg',
112
+ name: 'sprite/sprite_uses.svg',
113
113
  iconName: '[name]',
114
- onlySymbols: true,
114
+ onlySymbols: false,
115
115
  },
116
116
  },
117
117
  {
@@ -150,7 +150,7 @@ module.exports = {
150
150
  new HookPlugin({
151
151
  beforeCompile(compiler, callback) {
152
152
  let path = Path.join(process.cwd(), publicPath, 'sprite'),
153
- filename = 'sprite.svg',
153
+ filename = 'sprite_uses.svg',
154
154
  exists = Fs.existsSync(Path.join(path, filename));
155
155
 
156
156
  if (!exists) {
@@ -171,13 +171,13 @@ module.exports = {
171
171
  let spriteInputPath = Path.join(
172
172
  process.cwd(),
173
173
  publicPath,
174
- 'sprite/sprite.svg',
174
+ 'sprite/sprite_uses.svg',
175
175
  );
176
176
  let spriteOutputPath = Path.join(
177
177
  process.cwd(),
178
178
  spritePath,
179
179
  ),
180
- spritOutputFilename = '_sprite.svg';
180
+ spritOutputFilename = '_sprite_uses.svg';
181
181
 
182
182
  let exists = Fs.existsSync(spriteOutputPath);
183
183
 
@@ -196,7 +196,7 @@ module.exports = {
196
196
  }),
197
197
  new AssetsCopyPlugin({
198
198
  includes: ['js', 'css'],
199
- ignoreFiles: [/[-\w.]*.hot-update.js/, /sprite\/sprite.svg/],
199
+ ignoreFiles: [/[-\w.]*.hot-update.js/, /sprite\/sprite_uses.svg/],
200
200
  files: [
201
201
  {
202
202
  from: publicPath,