Skip to content

Commit

Permalink
add locales to build
Browse files Browse the repository at this point in the history
  • Loading branch information
pghalliday committed May 24, 2017
1 parent 3f3d53a commit 77e2eb5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion polymer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
],
"extraDependencies": [
"manifest.json",
"bower_components/webcomponentsjs/*.js"
"bower_components/webcomponentsjs/*.js",
"locales.json"
],
"lint": {
"rules": ["polymer-2"]
Expand Down
2 changes: 2 additions & 0 deletions predeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ sed -i.bak 's/"\/index/"\/hodler\/index/g' build/default/index.html build/defaul
rm build/default/*.bak
sed -i.bak 's/"\/manifest/"\/hodler\/manifest/g' build/default/index.html build/default/service-worker.js build/default/manifest.json
rm build/default/*.bak
sed -i.bak 's/"\/locales/"\/hodler\/locales/g' build/default/index.html build/default/service-worker.js build/default/manifest.json
rm build/default/*.bak
sed -i.bak 's/"\/images/"\/hodler\/images/g' build/default/index.html build/default/service-worker.js build/default/manifest.json
rm build/default/*.bak
sed -i.bak 's/\/service-worker/\/hodler\/service-worker/g' build/default/index.html build/default/service-worker.js build/default/manifest.json
Expand Down
1 change: 1 addition & 0 deletions sw-precache-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
staticFileGlobs: [
'/index.html',
'/manifest.json',
'/locales.json',
'/bower_components/webcomponentsjs/*',
],
navigateFallback: 'index.html',
Expand Down

0 comments on commit 77e2eb5

Please sign in to comment.