lothar-postpackager-script2bottom
lothar的postpackager阶段插件,将带有bottom属性的script标签移动至body结束标签的上方
使用
lothar init demo/common --modulecd demo/commonnpm install lothar-postpackager-script2bottom
修改lothar项目的conf文件
conf/conf.js
//注,lothar中有一个默认的postpackager的插件,此插件用于收集所有的静态资源,所以这边使用push,而不是直接setlotharconfig;
index.html
@extends('./layout') <!--重写content中的内容-->@section('content') @endsection
lothar release
index.html