Sha256: 6510b25df85c6673bc28ea4202eb0ffd879ce901c444e55aec49df95df7c6dcb
Contents?: true
Size: 578 Bytes
Versions: 5
Compression:
Stored size: 578 Bytes
Contents
var requirejs = require(<%= rjs_path.to_s.dump %>) var baseConfig = <%= cdn_pattern = Regexp.new("\\Ahttps?://") modifiedHash = build_config.select { |k, _| k != "modules" } pathsHash = modifiedHash["paths"] modifiedHash["dir"] = build_dir.to_s modifiedHash["paths"] = Hash[ pathsHash.map do |k, v| [k, v.is_a?(Array) || cdn_pattern.match(v) ? "empty:" : v] end ] if !pathsHash.nil? JSON.pretty_generate(modifiedHash) %>; baseConfig.modules = [ <% build_config["modules"].each do |m| %> <%= JSON.pretty_generate(m) %>, <% end %> ]; requirejs.optimize(baseConfig);
Version data entries
5 entries across 5 versions & 1 rubygems