class="ui container">

Nav apraksta

AmdMainTemplatePlugin.js 1.6KB

    /* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const ConcatSource = require("webpack-sources").ConcatSource; const Template = require("./Template"); class AmdMainTemplatePlugin { constructor(name) { this.name = name; } apply(compilation) { const mainTemplate = compilation.mainTemplate; compilation.templatesPlugin("render-with-entry", (source, chunk, hash) => { const externals = chunk.getModules().filter((m) => m.external); const externalsDepsArray = JSON.stringify(externals.map((m) => typeof m.request === "object" ? m.request.amd : m.request )); const externalsArguments = externals.map((m) => Template.toIdentifier(`__WEBPACK_EXTERNAL_MODULE_${m.id}__`) ).join(", "); if(this.name) { const name = mainTemplate.applyPluginsWaterfall("asset-path", this.name, { hash, chunk }); return new ConcatSource( `define(${JSON.stringify(name)}, ${externalsDepsArray}, function(${externalsArguments}) { return `, source, "});" ); } else if(externalsArguments) { return new ConcatSource(`define(${externalsDepsArray}, function(${externalsArguments}) { return `, source, "});"); } else { return new ConcatSource("define(function() { return ", source, "});"); } }); mainTemplate.plugin("global-hash-paths", (paths) => { if(this.name) paths.push(this.name); return paths; }); mainTemplate.plugin("hash", (hash) => { hash.update("exports amd"); hash.update(this.name); }); } } module.exports = AmdMainTemplatePlugin;
Kodo/kodo - Gogs: Go Git Service

989 次代碼提交 (aaea50baefd8eb23299ccbccb498a07015fa053c)

作者 SHA1 備註 提交日期
  FFIB aaea50baef decrypt2 add code 6 年之前
  FFIB acd751db64 changed thumb_media_id 6 年之前
  FFIB 065b286794 add img 6 年之前
  FFIB ba895d5869 注释掉会员章程部分内容 6 年之前
  FFIB 6510654772 上传会员章程图片 6 年之前
  FFIB deab0294ad 上传会员章程图片 6 年之前
  FFIB 18bbd340ed 上传会员章程图片 6 年之前
  FFIB 9b4fd1af3c 上传会员章程图片 6 年之前
  FFIB 3155bfee07 上传会员章程图片 6 年之前
  FFIB 41b3e6d7af 修改隐私和章程网页 6 年之前
  huangqimin 665b38d17d user.openid 6 年之前
  huangqimin 166f838b3d :art: Opt subscribe 6 年之前
  huangqimin d37d0576b3 :art: Move sql out transaction.atomic 6 年之前
  huangqimin 8c2ebcc59c :art: Update UserInfoAdmin 6 年之前
  huangqimin 5d326f3037 :art: Change subscribe default 0 6 年之前
  huangqimin 60a9724fa2 :art: sendcustomwxamessage 6 年之前
  huangqimin b570a71ac8 :art: Add subscribe field for UserInfo 6 年之前
  huangqimin 6d06194a0c SubscribeUserInfo 6 年之前
  huangqimin f4ded5ca43 Try sendcustomwxamessage 6 年之前
  huangqimin a1684c625d :art: Update requirements 6 年之前
  huangqimin f17ee852fd decrypt2 6 年之前
  huangqimin fd614fac90 :art: marketcode 6 年之前
  huangqimin 3a060a4b31 :art: Fix Brand Not Found 6 年之前
  huangqimin e6ff3cfee9 split 6 年之前
  huangqimin 5caf433f45 :bug: Fix Bug: ValueError: need more than 0 values to unpack 6 年之前
  huangqimin 1aa47f1594 iv 6 年之前
  huangqimin 212f24c882 MarketCode 6 年之前
  huangqimin 23e88fb058 :art: shot_member_integral 6 年之前
  huangqimin 4b46537a51 Privacy & Regulations 6 年之前
  huangqimin ca7a3518a9 :art: Ret member info for login 6 年之前
  huangqimin 11a41a958b Remove time.sleep 6 年之前
  FFIB 0ccf5ce96b 修改 公众号文章链接 6 年之前
  FFIB 7c00f5f74f 增加公众号文章连接 6 年之前
  huangqimin 22033c6128 Remove user_id 6 年之前
  huangqimin fbfe62a2fe user_id 6 年之前
  huangqimin 211ab99a32 :art: member/user/coupon/detail & member/user/coupon/use 6 年之前
  huangqimin 95936d0718 :bug: Fix Bug: can't compare datetime.date to NoneType 6 年之前
  FFIB 1d8d841b61 UserCouponInfoAdmin add user_coupon_id 6 年之前
  FFIB 024bcba754 add user_coupon_id 6 年之前
  FFIB 609955cf1c 会员商品不足 6 年之前
  FFIB b4a7a3e1c0 Merge branch 'tamron' of http://git.xfoto.com.cn/Kodo/kodo into tamron 6 年之前
  FFIB c1c00a87a9 add mp_url 6 年之前
  huangqimin 237d6c256d Remove unique=True 6 年之前
  huangqimin f671cfe50d coupon 6 年之前
  huangqimin 10abc816ff cpon 6 年之前
  huangqimin 8ca7a492e9 Merge branch 'tamron' of git.xfoto.com.cn:Kodo/kodo into tamron 6 年之前
  huangqimin d2fce27cd4 :bug: Fix Bug: CouponInfo 6 年之前
  FFIB 0d04edcc9f Merge branch 'tamron' of http://git.xfoto.com.cn/Kodo/kodo into tamron 6 年之前
  FFIB daffade76f goods data add value 6 年之前
  huangqimin 1e39b1850b DeleteModelAdmin 6 年之前