You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently, we can set our CDN URL as the __ CDN_URL __ variable. This variable will be automatically used during the build process to replace assets paths in the generated assetMap (https://github.com/sysgears/apollo-universal-starter-kit/blob/master/modules/core/server-ts/middleware/website.tsx#L116).
On the other hand, we may have other assets that potentially can be used in css/scss/less files, for example: .example { background-image: url(‘/assets/images/example.jpg’); }
or ts/js files, for example: const exampleImage = '/assets/images/example.jpg';
Paths to all these assets aren't automatically updated when we provide the __ CDN_URL __ variable.
Describe the solution you'd like
We may try to use webpack output.publicPath (https://webpack.js.org/guides/public-path/) to implement this kind of functionality for css/scss/less files.
Also, we may add some mechanism that will replace assets paths for ts/js files based on the __ CDN_URL __ variable.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Currently, we can set our CDN URL as the __ CDN_URL __ variable. This variable will be automatically used during the build process to replace assets paths in the generated assetMap (https://github.com/sysgears/apollo-universal-starter-kit/blob/master/modules/core/server-ts/middleware/website.tsx#L116).
On the other hand, we may have other assets that potentially can be used in css/scss/less files, for example:
.example { background-image: url(‘/assets/images/example.jpg’); }
or ts/js files, for example:
const exampleImage = '/assets/images/example.jpg';
Paths to all these assets aren't automatically updated when we provide the __ CDN_URL __ variable.
Describe the solution you'd like
We may try to use webpack output.publicPath (https://webpack.js.org/guides/public-path/) to implement this kind of functionality for css/scss/less files.
Also, we may add some mechanism that will replace assets paths for ts/js files based on the __ CDN_URL __ variable.
The text was updated successfully, but these errors were encountered: