Skip to content

Commit

Permalink
Merge pull request #23 from bluzky/dev
Browse files Browse the repository at this point in the history
new webpack config
  • Loading branch information
Tsjippy authored Dec 27, 2021
2 parents 4885085 + fd5a695 commit d8e92b3
Show file tree
Hide file tree
Showing 18 changed files with 907 additions and 10,781 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,14 @@ import NiceSelect from "nice-select2";

Finally, initialize the plugin.

Using the minimified file directly:
```javascript
NiceSelect.bind(document.getElementById("a-select"));
NiceSelect.bind(document.getElementById("a-select"), {searchable: true});
```

Using as import in webpack:
```javascript
new NiceSelect(document.getElementById("a-select"), {searchable: true});
```

## Instance method
Expand Down
2 changes: 1 addition & 1 deletion dist/js/nice-select2.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/style.js

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

191 changes: 0 additions & 191 deletions docs/dist/css/nice-select2.css

This file was deleted.

Loading

0 comments on commit d8e92b3

Please sign in to comment.