Skip to content

Commit 3882272

Browse files
committed
maint(Build): Explicitly set the dev server port to 3001 and fix the documentation which was wrong about it.
1 parent 758f7aa commit 3882272

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ which contains Patterns and all its dependencies:
4747

4848
Alternatively, you can [download a bundle at patternslib.com](http://patternslib.com/download.html).
4949

50+
To start the development server, use `make serve` or `npx yarn start` and access the demo pages via [http://localhost:3001/](http://localhost:3001/).
51+
The files are watched and the bundle re-built on changes.
52+
You can access the bundle directly at [http://localhost:3001/bundle.min.js](http://localhost:3001/bundle.min.js).
53+
5054

5155
## Layout
5256

@@ -70,7 +74,7 @@ You'll need to have a Sass compiler installed.
7074
To demo the patterns, simply type `make serve` to install the necessary
7175
dependencies and to start a simple Node.js HTTP server.
7276

73-
You can then visit http://localhost:4001 to see a site with demos.
77+
You can then visit http://localhost:3001 to see a site with demos.
7478

7579
Alternatively, patterns can also be demoed through the
7680
[Patternslib.com](http://patternslib.com) website, which is open-source. The

webpack/webpack.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ module.exports = () => {
8484
if (process.env.NODE_ENV === "development") {
8585
config.devServer.static.directory = path.resolve(__dirname, "../");
8686
config.devServer.watchFiles = ["src/"];
87+
config.devServer.port = "3001";
8788
// Add a strict Content-Security-Policy without 'unsafe-inline' to the dev
8889
// server for testing CSR issues.
8990
//config.devServer.headers["Content-Security-Policy"] =

0 commit comments

Comments
 (0)