Skip to content

Commit

Permalink
Attempt to fix reported webpack issues (#6)
Browse files Browse the repository at this point in the history
* Attempt to fix reported webpack issues

* Update package-lock.json

* Update README.md
  • Loading branch information
Script47 committed Dec 24, 2021
1 parent acb2126 commit e94ba23
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 12 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Bs5Utils - A JavaScript utility package for Bootstrap 5 components

---

A simple package to make the usage of various components within Bootstrap 5 easier to use.

If this package has helped you, and you're feeling particularly generous:
Expand Down
2 changes: 1 addition & 1 deletion dist/js/Bs5Utils.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bs5-utils",
"version": "1.0.1",
"version": "1.0.2",
"description": "A JavaScript utility package for Bootstrap 5 components.",
"main": "src/js/Bs5Utils.js",
"repository": {
Expand All @@ -17,9 +17,7 @@
"url": "https://github.com/Script47/bs5-utils/issues"
},
"homepage": "https://github.com/Script47/bs5-utils",
"scripts": {
"build": "webpack --config webpack.config.js"
},
"scripts": {},
"dependencies": {
"bootstrap": ">=5.0"
},
Expand Down
10 changes: 9 additions & 1 deletion src/js/Bs5Utils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import Toast from "./components/Toast";
import Snack from "./components/Snack";
import Modal from "./components/Modal";

class Bs5Utils {
/**
* Default config options
Expand Down Expand Up @@ -105,4 +109,8 @@ class Bs5Utils {

Bs5Utils.defaults.styles[key] = styles;
}
}
}

export {
Bs5Utils as default
};
4 changes: 3 additions & 1 deletion src/js/components/Modal.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class Modal {
import Bs5Utils from "../Bs5Utils";

export default class Modal {
/**
* A counter for the Modals
* @type {number}
Expand Down
4 changes: 3 additions & 1 deletion src/js/components/Snack.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class Snack {
import Bs5Utils from "../Bs5Utils";

export default class Snack {
/**
* A counter for the Snacks
* @type {number}
Expand Down
4 changes: 3 additions & 1 deletion src/js/components/Toast.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class Toast {
import Bs5Utils from "../Bs5Utils";

export default class Toast {
/**
* A counter for the Toasts
* @type {number}
Expand Down

0 comments on commit e94ba23

Please sign in to comment.