Commit f344de7 1 parent e065f0c commit f344de7 Copy full SHA for f344de7
File tree 4 files changed +21
-15
lines changed
4 files changed +21
-15
lines changed Original file line number Diff line number Diff line change @@ -9,17 +9,3 @@ Examples of parallax with React using [react-scroll-parallax](https://jscottsmit
9
9
🔗 [ Example Site] ( https://jscottsmith.github.io/react-scroll-parallax-examples/examples/parallax-example/ )
10
10
11
11
🔗 [ Parallax Testing] ( https://jscottsmith.github.io/react-scroll-parallax-examples/examples/parallax-test/ )
12
-
13
- ## Development
14
-
15
- Install node modules and start webpack:
16
-
17
- ` npm i `
18
-
19
- Run webpack watch:
20
-
21
- ` npm run dev `
22
-
23
- Run dev server:
24
-
25
- ` npm run dev-server `
Original file line number Diff line number Diff line change
1
+ ## Development
2
+
3
+ Install node modules and start webpack:
4
+
5
+ ` npm i `
6
+
7
+ Run webpack watch:
8
+
9
+ ` npm run dev `
10
+
11
+ Run dev server:
12
+
13
+ ` npm run dev-server `
Original file line number Diff line number Diff line change
1
+ ## Publish to GitHub Pages
2
+
3
+ Run ` npm run gh-pages ` for each example root. Swap the root directory in ` webpack.config.js ` . Push ` gh-pages ` branch.
4
+
5
+ Make sure the ` <script src="static/bundle.js"></script> ` is a relative link to the bundle. On ` master ` this link should be absolute.
Original file line number Diff line number Diff line change 1
- // Change this root to point to the desired example when
1
+ // Change this root to point to the desired example
2
+
2
3
const EXAMPLE_ROOT = './examples/parallax-example/' ;
4
+ // const EXAMPLE_ROOT = './examples/parallax-test/';
3
5
4
6
const createBabelConfig = require ( './babelrc' ) ;
5
7
const merge = require ( 'webpack-merge' ) ;
You can’t perform that action at this time.
0 commit comments