mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Angular2spa bundling improvements #1360
Closed
opened 2025-08-09 17:19:51 +00:00 by fergalmoran
·
0 comments
No Branch/Tag Specified
master
rybrande/masterToSrc
pakrym/no-console-fb
release/2.2
pakrym/remove-obsole-api-usage
maestro/release/2.2
maestro/master
release/2.1
release/2.0
rybrande/MergeRelease21IntoDev
rel/2.0.0-extensions
angular-animations-example
fix-angular-material-publishing
rel/2.0.0-templates
httpwithstatetransfer-example
rel/2.0.0-preview2-templates
aspnet-webpack-react-2.x
angular4-prerender-data-example
version-1.x
angular2-lazy-loading-example
581-isomorphic-react-cookies-example
example-using-typescript-paths-for-494
v1.0.x
angular2-materialize-example
redux-typed-1-x
primeng-example
font-awesome-example
karma-testing-example
2.2.0
2.2.0-preview3
2.2.0-preview2
2.2.0-preview1
2.1.1
2.1.0
2.0.4
2.1.0-rc1-final
2.1.0-preview2-final
2.0.3
2.1.0-preview1-final
2.0.2
2.0.1
rel/2.0.0
rel/2.0.0-preview2
Labels
Clear labels
2 - Working
2 - Working
3 - Done
3 - Done
3 - Done
3 - Done
3 - Done
3 - Done
3 - Done
angular
angular
angular
angular
angular
bug
bug
bug
bug
bug
bug
bug
bug
bug
core
core
core
core
core
core
core
duplicate
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
external
external
P1
P1
P1
P1
P1
P1
P2
P2
P2
P2
P2
P2
P2
P2
P2
PRI: 1 - Required
react
react
task
task
up-for-grabs
up-for-grabs
up-for-grabs
waiting
waiting
waiting
waiting
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
fergalmoran
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github/JavaScriptServices#1360
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SteveSandersonMS on 9/28/2016
These are significant changes, so I'm calling them out as a pull request, (even though I'm just about to merge it). If you have feedback/questions/etc, please do post here even though it will probably be merged by the time you see this - we can still change things.
The main differences are:
--env.prodflag, and not based on theASPNETCORE_ENVIRONMENTenv var. This is much better, because it means build and publish scripts can reliably trigger the correct dev/prod build in a natural way. See howproject.json's prepublish scripts can now easily guarantee the correct build format. Relying on theASPNETCORE_ENVIRONMENTvar before made no sense really, given that the current value just reflects what else you're doing on your machine, and you might not remember to change it before publishing your app.--env.prodis not arbitrary - this is the flag format that Webpack 2 uses, so when we later update to Webpack 2, people won't have to change their build scripts..tssource code or take runtime dependencies on any part of Webpack - you just deploy theClientApp/dist/main-server.jsfile that comes out of the build process)aspnet-webpack'sLoadViaWebpackfeature to compile to an in-memory filesystem, and in some edge cases, this confused some webpack plugins, but now we're just running a plain regular Webpack build system at build time and putting the results on disk, just like every other Webpack build system out there).node.exe(completely independently of ASP.NET) if that helps you track down anything unexpected.Soon I'll be applying the equivalent changes to all the other templates (React, etc.).