Comments (4)
I haven't tried this, but I think you should be able to get it working.
If it's a local file, you could just import it in the sources where you need it. If it's an external file, one method could be to add the script tag (i.e. append it to <head>
) from index.js
before you instantiate the app.
Update: You can also copy config/html-template.ejs
from your @enact/cli repo to your project and add your scripts to it. Then you need to update your package.json
to use the template. For example:
...
"enact": {
"theme": "moonstone",
"template": "html-template.ejs"
}
...
from enact.
Another example can be seen in the Cordova app template where a custom html-template.ejs
file is used to include the cordova.js
external script.
from enact.
@Sumitha-95 - does this help? Or is your issue still unresolved? thanks.
from enact.
I got a workaround.Injected the script manually on app.js.Hence closing the issue.
from enact.
Related Issues (20)
- Enact Moonstone video player not working on Tizen Tv(5.0) HOT 5
- Inconsistent behavior HOT 9
- Unknown browser query `dead` HOT 3
- onToggle type not defined in CheckboxItem HOT 2
- Adding actual icons to the Icon documentation HOT 2
- Adding animation flag for the scroller / vertualList HOT 1
- viturallist navigation issue HOT 1
- Standalone uiLibrary in an external project HOT 4
- Compatibility with expressJS, reactJS and reactNative HOT 2
- Running test from any of the enact samples shows error HOT 2
- a vulnerability CVE-2020-15168 is introduced in @enact/core HOT 1
- Spotlight focus behaving differently depending on screen resolution. HOT 5
- how make a build that have filename with hash ? HOT 1
- video player error enact.js HOT 6
- enact js Version compatibility issue HOT 4
- Subtitles support in player HOT 18
- Video player is not supporting m3u8 HLS format HOT 13
- Problems when using the VideoJS Player in enact. HOT 2
- Sandstone QuickGuidePanels doesn't work properly HOT 3
- Unable to play google video ads in Video Player HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enact.