diff --git a/.gitignore b/.gitignore index 3ea67959..51f587ac 100755 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,4 @@ public_html Thumbs.db *.pyc package-lock.json - +npm-debug.log diff --git a/build.sh b/build.sh index 348ef28c..14156834 100755 --- a/build.sh +++ b/build.sh @@ -2,15 +2,15 @@ # copy assets echo -e Copying assets $SERVER -rsync -avrs src/assets/ mopidy_iris/static/assets/ 2>&1 >/dev/null +rsync -avr src/assets/ mopidy_iris/static/assets/ 2>&1 >/dev/null # create HTML files echo -e Copying index.html cp src/index.html mopidy_iris/static/index.html # process production html -BUILD_VERSION=$(date | md5sum | cut -f1 -d' ') -echo -e "Injecting build version to js/css URLs ($BUILD_VERSION)" -sed -i 's/BUILD_VERSION_HERE/'$BUILD_VERSION'/g' mopidy_iris/static/index.html +BUILD_NAME=$(date +%s) +echo -e "Injecting build name to js/css URLs ($BUILD_NAME)" +sed -i 's/BUILD_NAME_HERE/'$BUILD_NAME'/g' mopidy_iris/static/index.html echo -e "\x1b[32;01m"Done!"\x1b[39;49;00m" \ No newline at end of file diff --git a/package.json b/package.json index 215aa18f..bb12c723 100755 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "sass-loader": "^6.0.2", "style-loader": "^0.13.2", "url-loader": "^0.5.8", - "webpack": "^3.3.0", + "webpack": "^3.5.1", "webpack-strip": "0.1.0", "react-lazyload": "2.2.7" }, diff --git a/src/index.html b/src/index.html index a80999d0..987d207a 100755 --- a/src/index.html +++ b/src/index.html @@ -35,7 +35,7 @@