From fc6da4c74a73955121daf56ee8485c71504d2bfe Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Thu, 5 Apr 2018 21:53:17 +0300 Subject: [PATCH] v0.1.1 --- index.js | 7 ++++++- package.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 6c83ceb..ef0f133 100644 --- a/index.js +++ b/index.js @@ -16,7 +16,12 @@ mix.extend('mergeManifest', (config) => { compiler.plugin('emit', (curCompiler, callback) => { let stats = curCompiler.getStats().toJson(); - Mix.manifest.manifest = merge(Mix.manifest.read(), Mix.manifest.manifest); + try { + Mix.manifest.manifest = merge(Mix.manifest.read(), Mix.manifest.manifest); + } catch (e) { + + } + Mix.manifest.transform(stats).refresh(); callback(); }); diff --git a/package.json b/package.json index 3e686cf..08c3ab3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "laravel-mix-merge-manifest", - "version": "0.1.0", + "version": "0.1.1", "description": "A quick Laravel Mix extension to support multi mix configration without overwriting the mix-manifest.json file.", "main": "index.js", "scripts": {