PDA

View Full Version : Missing essential files after npm run build



justdavey
29 Apr 2019, 10:28 AM
It generates the following files in /build directory:


app.js
app.js.map
index.html


index.html refers to ext-react/ directory, which does not exist.

Tested with clean install and https://docs.sencha.com/extreact/6.7.0/guides/getting_started.html

Forum_Adm
2 May 2019, 6:37 PM
Thank you so much for your post. I apologize for the delay. I have shared this with the support staff to look into at their earliest convenience. Your patience is greatly appreciated!

Thanks again,

Michele

rakumar
3 May 2019, 10:11 AM
Hello,

Thank you for contacting Sencha Support!

I request you to provide details of the build error for the reference of Engineering team for further troubleshooting.

Regards,
Kumar
Sencha Support.

chh
4 May 2019, 12:32 AM
You need to make sure treeshaking is enabled when you build.

Open package.json and make sure the build script has --env.treeshake=true in it.

"scripts": {
"build": "npm run clean && cross-env webpack --env.environment=production --env.treeshake=true",
}

justdavey
10 May 2019, 5:27 AM
You need to make sure treeshaking is enabled when you build.

Open package.json and make sure the build script has --env.treeshake=true in it.

"scripts": {
"build": "npm run clean && cross-env webpack --env.environment=production --env.treeshake=true",
}

Will try, thanks! How did you find out?

chh
13 May 2019, 5:16 AM
Will try, thanks! How did you find out?
The good old method of trial and error.