Introduce @abp/cropperjs npm package

CropperJs script and style contributor are added
pull/5185/head
Ahmet Çotur 5 years ago
parent 36a21f346c
commit d410e8059c

@ -0,0 +1,13 @@
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
using System.Collections.Generic;
namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.CropperJs
{
public class CropperJsScriptContributor : BundleContributor
{
public override void ConfigureBundle(BundleConfigurationContext context)
{
context.Files.AddIfNotContains("/libs/cropperjs/js/cropper.min.js");
}
}
}

@ -0,0 +1,13 @@
using System.Collections.Generic;
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.CropperJs
{
public class CropperJsStyleContributor : BundleContributor
{
public override void ConfigureBundle(BundleConfigurationContext context)
{
context.Files.AddIfNotContains("/libs/cropperjs/css/cropper.min.css");
}
}
}

@ -0,0 +1,6 @@
module.exports = {
mappings: {
"@node_modules/cropperjs/dist/cropper.min.js": "@libs/cropperjs/js/",
"@node_modules/cropperjs/dist/cropper.min.css": "@libs/cropperjs/css/"
}
}

@ -0,0 +1,11 @@
{
"version": "3.0.5",
"name": "@abp/cropperjs",
"publishConfig": {
"access": "public"
},
"dependencies": {
"cropperjs": "^1.5.7"
},
"gitHead": "bb4ea17d5996f01889134c138d00b6c8f858a431"
}
Loading…
Cancel
Save