File tree 3 files changed +11
-5
lines changed
3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ which contains Patterns and all its dependencies:
47
47
48
48
Alternatively, you can [ download a bundle at patternslib.com] ( http://patternslib.com/download.html ) .
49
49
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
+
50
54
51
55
## Layout
52
56
@@ -70,7 +74,7 @@ You'll need to have a Sass compiler installed.
70
74
To demo the patterns, simply type ` make serve ` to install the necessary
71
75
dependencies and to start a simple Node.js HTTP server.
72
76
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.
74
78
75
79
Alternatively, patterns can also be demoed through the
76
80
[ Patternslib.com] ( http://patternslib.com ) website, which is open-source. The
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ For jQuery the remote bundle is named ``jquery-remote.min.js``.
29
29
30
30
```
31
31
import "@patternslib/patternslib/webpack/module_federation";
32
- // Please not the parentheses for the next import.
33
- // Kepp them, otherwise we get this error:
32
+ // Please note the parentheses for the next import.
33
+ // Keep them, otherwise we get this error:
34
34
// "Shared module is not available for eager consumption."
35
35
import("./src/patterns");
36
36
```
@@ -39,8 +39,8 @@ For the jQuery bundle which we will use as remote we create: ``index-jquery.js``
39
39
40
40
```
41
41
import "@patternslib/patternslib/webpack/module_federation";
42
- // Please not the parentheses for the next import.
43
- // Kepp them, otherwise we get this error:
42
+ // Please note the parentheses for the next import.
43
+ // Keep them, otherwise we get this error:
44
44
// "Shared module is not available for eager consumption."
45
45
import("@patternslib/patternslib/src/globals");
46
46
```
Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ module.exports = () => {
83
83
84
84
if ( process . env . NODE_ENV === "development" ) {
85
85
config . devServer . static . directory = path . resolve ( __dirname , "../" ) ;
86
+ config . devServer . watchFiles = [ "src/" ] ;
87
+ config . devServer . port = "3001" ;
86
88
// Add a strict Content-Security-Policy without 'unsafe-inline' to the dev
87
89
// server for testing CSR issues.
88
90
//config.devServer.headers["Content-Security-Policy"] =
You can’t perform that action at this time.
0 commit comments