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
{{ message }}
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
A slightly more Ember-ish way to copy the assets would be to include them in app.toTree().
I'm thinking of trying the following and if it works Adding CSS and Adding Icons README sections could be combined into a single section w/ the following snippet:
// ember-cli-build.jsconstpath=require('path');constEmberApp=require('ember-cli/lib/broccoli/ember-app');constFunnel=require('broccoli-funnel');module.exports=function(defaults){letapp=newEmberApp(defaults,{});// tell the app to import the global stylesheetapp.import('node_modules/@esri/calcite-components/dist/calcite/calcite.css');// copy the assets to the app's public folderconstcalciteComponentsAssetsTree=newFunnel(path.dirname(require.resolve('@esri/calcite-components/dist/calcite/calcite.css')),{files: ['assets']});returnapp.toTree(calciteComponentsAssetsTree);};
I've copied that from our app where I've verified that it works w/ development builds. However, I have yet to verify it in a production build that does fingerprinting and prepending w/ CDN URLs. If there were any problems w/ fingerprinting and prepending, they would apply to the copy script too, so I figure we might as well try it here.
The text was updated successfully, but these errors were encountered:
A slightly more Ember-ish way to copy the assets would be to include them in
app.toTree()
.I'm thinking of trying the following and if it works Adding CSS and Adding Icons README sections could be combined into a single section w/ the following snippet:
I've copied that from our app where I've verified that it works w/ development builds. However, I have yet to verify it in a production build that does fingerprinting and prepending w/ CDN URLs. If there were any problems w/ fingerprinting and prepending, they would apply to the copy script too, so I figure we might as well try it here.
The text was updated successfully, but these errors were encountered: