1.WebPack 添加配置文件webpack.config.js,直接在当前目录运行 webpack. var basepath = '/root/webapps/happ'; var glob = require('glob'); var entries = getEntry('./Views/**/*.js'); // 获得入口js文件 function getEntry(globPath) { var entries = {}; glob.sync(globPath).forEach(f…