Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Production rollup bundle target and lite-server target for serving it#58

Merged
alexeagle merged 2 commits intoangular:masterfrom
gregmagolan:rollup-and-lite-server
Jan 19, 2018
Merged

Production rollup bundle target and lite-server target for serving it#58
alexeagle merged 2 commits intoangular:masterfrom
gregmagolan:rollup-and-lite-server

Conversation

@gregmagolan
Copy link
Contributor

No description provided.

this JS resource would be served from a static file.
-->
<script src="/bundle.js"></script>
<script src="/bundle.min.js"></script>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One potential issue with this is that when the ts_devserver is serving this file, the bundle is not minified. Calling the script "bundle.min.js" could give readers the wrong idea about what goes on in the ts_devserver case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexeagle and I discussed this and it's not ideal but I didn't want to use a different html file for the lite-server. Could run the html file through a template but that's another level of complication.

README.md Outdated
npm run rollup
```

Test the bundled rollup application by running `npm run lite-server`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also include the Bazel versions of the commands in this section, not just the npm run aliases. The first time I read this, I was confused because I assumed these npm run commands were circumventing Bazel entirely. Only when I saw package.json did I realize the npm commands were aliases to Bazel commands.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. I'll just change the README to show to bazel build commands

@gregmagolan
Copy link
Contributor Author

Fixing the conflicts

@gregmagolan
Copy link
Contributor Author

Conflicts fixed

@alexeagle alexeagle merged commit 21428b3 into angular:master Jan 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants