From 7161853006d8cb775b677afaeac9702c7021e3c9 Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Tue, 7 May 2019 17:05:02 +0300 Subject: [PATCH] CRA v3.0.0 had custom asset-manifest generator for files --- server/importer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/importer.js b/server/importer.js index 83eb744f..185e687f 100644 --- a/server/importer.js +++ b/server/importer.js @@ -9,7 +9,7 @@ const path = require('path'); const buildPath = path.resolve(__dirname, '..', 'build'); const manifestPath = path.join(buildPath, 'asset-manifest.json'); const manifest = require(manifestPath); -const mainJsPath = path.join(buildPath, manifest['main.js']); +const mainJsPath = path.join(buildPath, manifest['files']['main.js']); const mainJs = require(mainJsPath); module.exports = {