Skip to content

Commit 52d597c

Browse files
committed
Add readme
1 parent 4967da5 commit 52d597c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# jQuery UI built with webpack demo
2+
3+
This repository provides a sample setup to use jQuery UI widgets, built
4+
with webpack.
5+
6+
To try this locally, clone this repo, then run:
7+
8+
npm install
9+
10+
## Running dev server
11+
12+
The setup includes `webpack-dev-server`, which builds file as they change and runs a server that auto reloads those changed files. To run:
13+
14+
npm start
15+
16+
## Building for production
17+
18+
To build static files that can be uploaded on GitHub pages or any other static file hosting, run:
19+
20+
npm run build
21+
22+
This writes resources into the `dist/` folder. They are not minified to make it easy to inspect the result.
23+
24+
## Scope of this demo
25+
26+
This demo is mostly useful to show how to use webpack to bundle a single page application that uses jQuery UI. The generated html page has no content on its own, which is a bad approach when you're building public facing websites. For those you'd start with a proper HTML page, but you could still use webpack to bundle the static resources (JS, CSS, images).
27+
28+

0 commit comments

Comments
 (0)