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
Expected behavior:
Should be copying the themes/ directory into the www/build/ directory on initial build.
Steps to reproduce:
I have a google maps component that has a theme attribute. That theme attribute typically loads a json file that styles the google map.
I define the google maps component as shown below, then run npm start - however the www directories look like:
where running npm run build.prod produces the expected result:
Actually, this happens with production builds as well.
Related code:
@Component({tag: 'stellar-google-maps',styleUrl: 'map.css',assetsDirs: ["themes"]// assetDir: "themes" also behaves the same way})exportclassMap{// other stuff...
@Prop()theme: string="default";
@Watch('theme')asynchandleTheme(){letstyles=[];if(this.theme){styles=await(awaitfetch(getAssetPath(`./themes/${this.theme}.json`))).json();}this.map.setOptions({ styles })}// other stuff...render(){return<divid="map"/>}}
Other information:
The text was updated successfully, but these errors were encountered:
Stencil version:
I'm submitting a:
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
Folders set on a component in the "assetsDirs" and "assetsDir" aren't copied to the /www/build directory.
On a production build - not a watch process - they are copied to the dist/
{namespace}
/ directory - so that's good.You can visit this repo to reproduce: https://github.com/splitinfinities/Stellar/tree/beta
Expected behavior:
Should be copying the themes/ directory into the www/build/ directory on initial build.
Steps to reproduce:
I have a google maps component that has a theme attribute. That theme attribute typically loads a json file that styles the google map.
I define the google maps component as shown below, then run
npm start
- however the www directories look like:where runningnpm run build.prod
produces the expected result:Actually, this happens with production builds as well.
Related code:
Other information:
The text was updated successfully, but these errors were encountered: