Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting to change which bundles are generated (client and/or server) [8pt] #704

Open
SantosGuillamot opened this issue Feb 9, 2021 · 0 comments
Labels
Projects

Comments

@SantosGuillamot
Copy link
Member

This is needed for AMP feature. For full context please check out the final Implementation proposal.


In some cases, like in AMP, we don't need to generate bundles for the client because the Google AMP framework forbids the use of external JavaScript.

It will be managed by a new site setting on the frontity.settings.js file:

export default {
  name: "my-amp-site",
  bundles: ["server"],
  state: {
    //...
  },
  packages: [
    //...
  ],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
AMP feature
  
To do
Development

No branches or pull requests

1 participant