Skip to content

Commit

Permalink
fix(naming): webpack and package
Browse files Browse the repository at this point in the history
  • Loading branch information
bkapustik committed Jul 17, 2024
1 parent e5490a1 commit e2919fb
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "xperience-calendar-component",
"name": "@kentico/xperience-calendar-component",
"version": "1.0.0",
"description": "",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const config = {
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, ".././wwwroot/js"),
filename: "@kentico/xperience-calendar-component.js",
filename: "xperience-calendar-component.js",
module: true,
},
experiments: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

<script>
var script = document.createElement('script');
script.src = "~/_content/Kentico.Xperience.CalendarComponent/js/@@kentico/xperience-calendar-component.js";
script.src = "~/_content/Kentico.Xperience.CalendarComponent/js/xperience-calendar-component.js";
script.onload = async function () {
await xperience.calendarComponent.initializeFlatpickrSingleInput(@Html.Raw(Json.Serialize(configuration)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

<script>
var script = document.createElement('script');
script.src = "~/_content/Kentico.Xperience.CalendarComponent/js/@@kentico/xperience-calendar-component.js";
script.src = "~/_content/Kentico.Xperience.CalendarComponent/js/xperience-calendar-component.js";
script.onload = function () {
window.xperience.calendarComponent.initializeFlatpickrMultiInput(@Html.Raw(Json.Serialize(configuration)));
};
Expand Down

0 comments on commit e2919fb

Please sign in to comment.