Frontmatter
| id | 517 |
| title | webpack.config.main => different asset names in mode prod |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | May 1, 2020, 11:32 AM |
| updatedAt | May 1, 2020, 11:34 AM |
| githubUrl | https://github.com/neomjs/neo/issues/517 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | May 1, 2020, 11:34 AM |
webpack.config.main => different asset names in mode prod
tobiu assigned to @tobiu on May 1, 2020, 11:32 AM

tobiu
May 1, 2020, 11:34 AM
Asset Size Chunks Chunk Names
main.js 41.5 KiB 0 [emitted] main
src/main/lib/AmCharts.js 2.29 KiB 1 [emitted] src/main/lib/AmCharts
chunkFilename: '[name].js'
fixes this in prod.
tobiu closed this issue on May 1, 2020, 11:34 AM
dev-build-main:
Asset Size Chunks Chunk Names main.js 405 KiB main [emitted] main src/main/lib/AmCharts.js 21.8 KiB src/main/lib/AmCharts [emitted] src/main/lib/AmChartsprod-build-main:
the asset names in dev & prod do not match, obviously we want the dev version one.
the chunk name is defined indirectly in Main.mjs:
if (Neo.config.useAmCharts) { await import(/* webpackChunkName: 'src/main/lib/AmCharts' */ './main/lib/AmCharts.mjs'); }