We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e19c2f commit 856fc48Copy full SHA for 856fc48
1 file changed
index.js
@@ -1,5 +1,5 @@
1
const fs = require('fs');
2
-
+
3
class ManifestVersionSyncPlugin {
4
constructor(options) {
5
const defaultOptions = {
@@ -20,7 +20,7 @@ class ManifestVersionSyncPlugin {
20
const { packagePath, manifestPath } = this.options;
21
const { version } = JSON.parse(fs.readFileSync(packagePath).toString());
22
const manifest = JSON.parse(compilation.assets[manifestPath].source().toString());
23
- const content = JSON.stringify({ ...manifest, version });
+ const content = JSON.stringify({ version, ...manifest }, undefined, 2);
24
25
compilation.assets[manifestPath] = {
26
source: function() {
0 commit comments