diff --git a/.travis.yml b/.travis.yml
index 31d3f5e..fa9f600 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,16 +10,18 @@ script:
- npm run build
- npm run build:examples
+before_deploy:
+ - sed -i '/dist/d' .gitignore
+ - sed -i '/\/build/d' examples/react-webpack/.gitignore
+ - sed -i '/\/dist/d' examples/vue-webpack/.gitignore
+ - rm examples/superhero-utils
+ - cp -r dist examples/superhero-utils
+
deploy:
- - provider: script
- skip_cleanup: true
- script: sed -i '/dist/d' .gitignore
- on:
- branch: master
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
- local_dir: .
+ local_dir: examples
on:
branch: master
diff --git a/examples/index.html b/examples/index.html
index 4467387..f04a4e8 100644
--- a/examples/index.html
+++ b/examples/index.html
@@ -1,10 +1,10 @@
superhero-utils example using plain js
Other examples:
-react unpkg,
-react webpack,
-vue unpkg,
-vue webpack
+react unpkg,
+react webpack,
+vue unpkg,
+vue webpack
Donate
diff --git a/examples/react-webpack/package.json b/examples/react-webpack/package.json
index 2030384..0fc851e 100644
--- a/examples/react-webpack/package.json
+++ b/examples/react-webpack/package.json
@@ -18,7 +18,7 @@
"react-app/jest"
]
},
- "homepage": "/react-webpack/build/",
+ "homepage": ".",
"browserslist": {
"production": [
">0.2%",
diff --git a/examples/react-webpack/src/superhero-utils b/examples/react-webpack/src/superhero-utils
index 35f47bf..a57d0d5 120000
--- a/examples/react-webpack/src/superhero-utils
+++ b/examples/react-webpack/src/superhero-utils
@@ -1 +1 @@
-../../../dist
\ No newline at end of file
+../../superhero-utils
\ No newline at end of file
diff --git a/examples/vue-webpack/vue.config.js b/examples/vue-webpack/vue.config.js
index 9984cfe..6e3b40b 100644
--- a/examples/vue-webpack/vue.config.js
+++ b/examples/vue-webpack/vue.config.js
@@ -1,3 +1,3 @@
module.exports = {
- publicPath: '/vue-webpack/dist/',
+ publicPath: '.',
};