-
Notifications
You must be signed in to change notification settings - Fork 614
PRO-6775: External frontend support, docs cleanup #4799
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
Changes from 5 commits
1eea20a
3125f64
0beea6a
5a354a4
cb8a7f3
2bd2aa3
b884f24
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{ | ||
"extends": "stylelint-config-apostrophe" | ||
"extends": "stylelint-config-apostrophe", | ||
"//": "declaration-strict-value issue: https://github.com/AndyOGo/stylelint-declaration-strict-value/issues/379", | ||
myovchev marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"rules": { | ||
"scale-unlimited/declaration-strict-value": null | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,6 +98,10 @@ module.exports = { | |
// Force the HMR WS port when it operates on the same process as Apostrophe. | ||
// Most of the time you won't need to change this. | ||
hmrPort: null, | ||
// Let the external build module inject a pollyfill for the module preload, | ||
// adding the `modulepreload` support for the browsers that don't support it. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What browsers don't support it? Curious. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's widely supported now. But I'm just following the Vite standards and defaults: https://vite.dev/config/build-options.html#build-polyfillmodulepreload |
||
// Can be disabled in e.g. external front-ends. | ||
modulePreloadPolyfill: true, | ||
// Completely disable the asset runtime auto-build system. | ||
// When an external build module is registered, only manifest data | ||
// will be loaded and no build will be executed. | ||
|
@@ -477,6 +481,7 @@ module.exports = { | |
// - `devServer`: if `false`, the dev server is disabled. Otherwise, it's a string | ||
// (enum) `public` or `apos`. Note that if `hmr` is disabled, the dev server will be always | ||
// `false`. | ||
// - `modulePreloadPolyfill`: if `true`, a module preload polyfill is injected. | ||
// - `types`: optional array, if present it represents the only entrypoint types (entrypoint.type) | ||
// that should be built. | ||
// - `sourcemaps`: if `true`, the source maps are generated in production. | ||
|
@@ -494,15 +499,16 @@ module.exports = { | |
isTask: !argv['check-apos-build'], | ||
hmr: self.hasHMR(), | ||
hmrPort: self.options.hmrPort, | ||
modulePreloadPolyfill: self.options.modulePreloadPolyfill, | ||
sourcemaps: self.options.productionSourceMaps | ||
}; | ||
options.devServer = !options.isTask && self.hasDevServer() | ||
? self.options.hmr | ||
: false; | ||
|
||
// Skip all public and keep only the apos scenes. | ||
// Skip prebundled UI and keep only the apos scenes. | ||
if (!self.options.publicBundle) { | ||
options.types = [ 'apos', 'bundled' ]; | ||
options.types = [ 'apos', 'index' ]; | ||
} | ||
|
||
return options; | ||
|
Uh oh!
There was an error while loading. Please reload this page.