botframework网络聊天V4构建并生成自定义CSS和JS文件 [英] botframework web chat V4 build and generate custom CSS and JS File

查看:92
本文介绍了botframework网络聊天V4构建并生成自定义CSS和JS文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从 https://github.com/microsoft/BotFramework-WebChat ,并可以使用下面的npm命令进行一些更改后构建项目

I've cloned the repository from https://github.com/microsoft/BotFramework-WebChat and was able to build the project after some changes with the below npm command

npm运行构建

npm run build

但是,此构建未生成早期版本的网络聊天所生成的botchat.css和botchat.js文件.我进行自定义构建的原因是我需要能够在网络聊天中显示HTML格式.有关如何获取.css和.js文件的任何步骤都将非常有帮助.

However, this build has not generated the botchat.css and botchat.js files that the earlier versions of web chat used to generate. The reason for my custom build is that I need to be able to display HTML formatting on the web chat. Any steps on how to get the .css and .js files would be really helpful.

推荐答案

Web Chat不再从构建中生成自定义CSS文件.我建议您查看从Web聊天v3到v4的版本

Web Chat no longer generates custom CSS files from the build. I would recommend looking at the Web Chat v3 to v4 Migration Sample and Web Chat's other customization samples - specifically the Custom Branding Styling sample.

这篇关于botframework网络聊天V4构建并生成自定义CSS和JS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆