CRA v3.0.0 had custom asset-manifest generator for files

This commit is contained in:
Vesa Luusua 2019-05-07 17:05:02 +03:00
parent 42dc1d5acf
commit 7161853006

View file

@ -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 = {