Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Include all Component related JavaScript in the HTML

Community Beginner ,
Mar 21, 2018 Mar 21, 2018

Hi there,

Is there any solution to include all the JavaScript which is generated if I add a Component on the canvas?

I am talking about these file:

components/sdk/anwidget.js

components/ui/src/button.js

components/ui/src/css.js

components/ui/src/label.js

So I want these file to be "burnt" into the HTML file.

Thank you,

Peter

345
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 21, 2018 Mar 21, 2018

in your publish preferences you can opt to include your js in your html.

Translate
Community Expert ,
Mar 21, 2018 Mar 21, 2018

in your publish preferences you can opt to include your js in your html.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 23, 2018 Mar 23, 2018

But it only includes the "PROJECT_FILE_NAME.js" file's content, and not the Component's Javascript files.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 24, 2018 Mar 24, 2018
LATEST

then you'll need to do that manually.  i've not done it before so i can't tell you how to do it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines