Skip to content

Commit 7fcc482

Browse files
authored
feat: deprecate stripStr (#83)
BREAKING CHANGE: stripStr will not long have an effect on manifest keys
1 parent 78c5321 commit 7fcc482

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,6 @@ Type: `String`
7070
A path prefix for all keys. Useful for including your output path in the manifest.
7171

7272

73-
### `options.stripSrc`
74-
75-
Type: `String`, `RegExp`
76-
77-
Removes unwanted strings from source filenames.
78-
79-
8073
### `options.writeToFileEmit`
8174

8275
Type: `Boolean`<br>

lib/plugin.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ function ManifestPlugin(opts) {
66
this.opts = _.assign({
77
basePath: '',
88
fileName: 'manifest.json',
9-
stripSrc: null,
109
transformExtensions: /^(gz|map)$/i,
1110
writeToFileEmit: false,
1211
cache: null, // TODO: Remove `cache` in next major release in favour of `seed`.
@@ -47,7 +46,7 @@ ManifestPlugin.prototype.apply = function(compiler) {
4746

4847
var files = compilation.chunks.reduce(function(files, chunk) {
4948
return chunk.files.reduce(function (files, path) {
50-
var name = chunk.name ? chunk.name.replace(this.opts.stripSrc, '') : null;
49+
var name = chunk.name ? chunk.name : null;
5150

5251
if (name) {
5352
name = name + '.' + this.getFileType(path);

0 commit comments

Comments
 (0)