vue cli3 搭建多页面框架接入ckeditor

1.页面模板根据webpack标识判断是否引入ckeditor,因为多页面使用的基础模板是同一个,所以编译的时候需要生成不同的模板

<% if(htmlWebpackPlugin.options.hasEditor) { %>
      <script src="//cdn.ckeditor.com/4.11.1/standard/ckeditor.js"></script>
<% } %>

猜你喜欢

转载自www.cnblogs.com/afterwawa/p/9985256.html
今日推荐