mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-25 22:37:18 +10:00
CRA v3.0.0 had custom asset-manifest generator for files
This commit is contained in:
parent
42dc1d5acf
commit
7161853006
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue