1.页面模板根据webpack标识判断是否引入ckeditor,因为多页面使用的基础模板是同一个,所以编译的时候需要生成不同的模板
<% if(htmlWebpackPlugin.options.hasEditor) { %>
<script src="//cdn.ckeditor.com/4.11.1/standard/ckeditor.js"></script>
<% } %>
1.页面模板根据webpack标识判断是否引入ckeditor,因为多页面使用的基础模板是同一个,所以编译的时候需要生成不同的模板
<% if(htmlWebpackPlugin.options.hasEditor) { %>
<script src="//cdn.ckeditor.com/4.11.1/standard/ckeditor.js"></script>
<% } %>