diff --git a/npm/packs/aspnetcore.mvc.ui.theme.shared/abp.resourcemapping.js b/npm/packs/aspnetcore.mvc.ui.theme.shared/abp.resourcemapping.js index 240c3d1dde..0f74ebfd45 100644 --- a/npm/packs/aspnetcore.mvc.ui.theme.shared/abp.resourcemapping.js +++ b/npm/packs/aspnetcore.mvc.ui.theme.shared/abp.resourcemapping.js @@ -4,12 +4,10 @@ "../font-awesome/abp.resourcemapping.js", "../jquery-form/abp.resourcemapping.js", "../jquery-validation-unobtrusive/abp.resourcemapping.js", + "../sweetalert/abp.resourcemapping.js", "../datatables.net-bs4/abp.resourcemapping.js" ], mappings: { - //Sweetalert - "@node_modules/sweetalert/dist/*.*": "@libs/sweetalert/", - //Toastr "@node_modules/toastr/build/*.*": "@libs/toastr/" } diff --git a/npm/packs/aspnetcore.mvc.ui.theme.shared/package.json b/npm/packs/aspnetcore.mvc.ui.theme.shared/package.json index 4914937b3b..3dbfc8e88b 100644 --- a/npm/packs/aspnetcore.mvc.ui.theme.shared/package.json +++ b/npm/packs/aspnetcore.mvc.ui.theme.shared/package.json @@ -11,7 +11,7 @@ "@abp/font-awesome": "^0.2.3", "@abp/jquery-form": "^0.2.3", "@abp/jquery-validation-unobtrusive": "^0.2.3", - "sweetalert": "^2.1.0", + "@abp/sweetalert": "^0.2.3", "toastr": "^2.1.4" } } diff --git a/npm/packs/sweetalert/abp.resourcemapping.js b/npm/packs/sweetalert/abp.resourcemapping.js new file mode 100644 index 0000000000..4c2b0170a2 --- /dev/null +++ b/npm/packs/sweetalert/abp.resourcemapping.js @@ -0,0 +1,8 @@ +module.exports = { + imports: [ + "../core/abp.resourcemapping.js" + ], + mappings: { + "@node_modules/sweetalert/dist/*.*": "@libs/sweetalert/" + } +} \ No newline at end of file diff --git a/npm/packs/sweetalert/package.json b/npm/packs/sweetalert/package.json new file mode 100644 index 0000000000..8af63057e3 --- /dev/null +++ b/npm/packs/sweetalert/package.json @@ -0,0 +1,11 @@ +{ + "version": "0.2.3", + "name": "@abp/sweetalert", + "publishConfig": { + "access": "public" + }, + "dependencies": { + "@abp/core": "^0.2.3", + "sweetalert": "^2.1.0" + } +}