Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add webpack configuration #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
*.swp
*.swo
concat.js
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,24 @@ Multiselect object provides public method for selecting/deselecting all data. So
**Posting to server without any extensions**

Multiselect is just a wrapper for built-in selects. So, you should pass `select[multiple]` and every interaction with dropdown list of multiselect will reflect in options of passed `select`. When you perform `POST` request, the original `select[multiple]` will be posted instead of generation of fake input fields.

## Contributing
To build `multiselect.min.js` from `scripts/*.js`, first install Webpack (you'll need to have [npm](https://www.npmjs.com/get-npm) installed):
```$ npm install```
Then run webpack
```
$ npm run build

> multiselect@1.0.0 build /multiselect
> cat scripts/\*.js > concat.js && webpack && rm concat.js

Hash: 0a3514ea2dc70cf574d3
Version: webpack 4.44.1
Time: 318ms
Built at: 09/16/2020 2:33:52 PM
Asset Size Chunks Chunk Names
multiselect.min.js 12.6 KiB 0 [emitted] main
Entrypoint main = multiselect.min.js
[0] ./concat.js 19.1 KiB {0} [built]
```

45 changes: 1 addition & 44 deletions multiselect.min.js

Large diffs are not rendered by default.

Loading