5 changed files with 41 additions and 16 deletions
@ -0,0 +1,14 @@ |
|||
using Volo.Abp.AspNetCore.Mvc.UI.Packages.JQuery; |
|||
|
|||
namespace LY.MicroService.Applications.Single.Bundling; |
|||
|
|||
[DependsOn(typeof(JQueryScriptContributor))] |
|||
public class SingleGlobalScriptContributor : BundleContributor |
|||
{ |
|||
public override Task ConfigureBundleAsync(BundleConfigurationContext context) |
|||
{ |
|||
context.Files.Add("/scripts/abp-wrapper.js"); |
|||
|
|||
return Task.CompletedTask; |
|||
} |
|||
} |
|||
@ -1,10 +0,0 @@ |
|||
"use strict"; |
|||
|
|||
var gulp = require("gulp"), |
|||
path = require('path'), |
|||
copyResources = require('./node_modules/@abp/aspnetcore.mvc.ui/gulp/copy-resources.js'); |
|||
|
|||
exports.default = function(done){ |
|||
copyResources(path.resolve('./')); |
|||
done(); |
|||
}; |
|||
@ -0,0 +1,11 @@ |
|||
var abp = abp || {}; |
|||
(function ($) { |
|||
|
|||
if (!abp.ajax || !abp.ajax.defaultOpts) { |
|||
throw "abp/jquery library requires the jquery library included to the page!"; |
|||
} |
|||
|
|||
var headers = abp.ajax.defaultOpts.headers || {}; |
|||
headers['_abpdontwrapresult'] = 'true'; |
|||
|
|||
})(jQuery); |
|||
Loading…
Reference in new issue