@lightscale/webpack-config 1.0.3 → 1.0.4

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/index.js CHANGED
@@ -7,8 +7,6 @@ import EsLintPlugin from 'eslint-webpack-plugin';
7
7
  import WebpackbarPlugin from 'webpackbar';
8
8
  import CleanTerminalPlugin from 'clean-terminal-webpack-plugin';
9
9
  import {CleanWebpackPlugin} from 'clean-webpack-plugin';
10
- import SvgChunkWebpackPlugin from 'svg-chunk-webpack-plugin';
11
-
12
10
 
13
11
  export class Paths {
14
12
  #jsSourcePath;
@@ -55,7 +53,6 @@ export const makeConfig = (env, argv, options) => {
55
53
  customize(entry) {
56
54
 
57
55
  if (
58
- entry.key.startsWith('svg/') ||
59
56
  entry.key.endsWith('.map')
60
57
  ) return false;
61
58
 
@@ -93,11 +90,6 @@ export const makeConfig = (env, argv, options) => {
93
90
  new NotifierPlugin(),
94
91
  new WebpackbarPlugin(),
95
92
  new CleanTerminalPlugin(),
96
- new SvgChunkWebpackPlugin({
97
- filename: '[name].[contenthash].svg',
98
- svgstoreConfig: {inline: false},
99
- }),
100
-
101
93
  ...plugins,
102
94
  ],
103
95
 
@@ -123,13 +115,6 @@ export const makeConfig = (env, argv, options) => {
123
115
  'sass-loader',
124
116
  ],
125
117
  },
126
- {
127
- test: /.svg$/i,
128
- include: paths.sourcePath,
129
- use: [
130
- {loader: SvgChunkWebpackPlugin.loader}
131
- ]
132
- }
133
118
  ],
134
119
  },
135
120
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightscale/webpack-config",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Basic webpack config with js babel, postcss, scss, svg",
5
5
  "main": "index.js",
6
6
  "auther": "Sam Light",