Skip to content

Commit aaf7380

Browse files
v1.0.9
Fixed babel transpiling, still not sure why serviceworker is not working
1 parent 9a06a05 commit aaf7380

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

app/js/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
(function(){
2+
// Service worker registeration
3+
24
if ('serviceWorker' in navigator) {
35
navigator.serviceWorker.register('serviceworker.js')
46
.then(function(registration) {
@@ -9,8 +11,6 @@
911
});
1012
}
1113

12-
// Edge polyfill for "for ... of" iteration
13-
1414
// Turn off body overflow
1515

1616
function overflow() {

app/manifest.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "CSS Grid Playground",
3-
"start_url": "/index.html",
43
"short_name": "CSS Grid",
4+
"description": "Simple app that lets you play with CSS Grid.",
5+
"start_url": "/index.html",
56
"icons": [
67
{
78
"src": "https://michalgrochowski.github.io/grid-playground/dist/android-chrome-36x36.png",

dist/js/main.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/manifest.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "CSS Grid Playground",
3-
"start_url": "/index.html",
43
"short_name": "CSS Grid",
4+
"description": "Simple app that lets you play with CSS Grid.",
5+
"start_url": "/index.html",
56
"icons": [
67
{
78
"src": "https://michalgrochowski.github.io/grid-playground/dist/android-chrome-36x36.png",

gulpfile.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const autoprefixer = require('gulp-autoprefixer');
1212
const cssmin = require('gulp-cssmin');
1313
const babel = require('gulp-babel');
1414
const babelCore = require('gulp-core');
15-
const babelPreset2015 = require('babel-preset-es2015');
1615

1716
gulp.task('sass', function() {
1817
return gulp.src('app/scss/**/*.scss')
@@ -141,5 +140,5 @@ gulp.task('default', () =>
141140
);
142141

143142
gulp.task('build', () =>
144-
sequence('clean:dist', ['sass', 'useref', 'babel', 'img', 'font', 'fonts', 'php', 'json', 'form', 'favicons', 'xml', 'favicon-svg', 'manifest', 'ico', 'serviceWorker'], 'minify', 'cssmin')
143+
sequence('clean:dist', ['sass', 'useref', 'img', 'font', 'fonts', 'php', 'json', 'form', 'favicons', 'xml', 'favicon-svg', 'manifest', 'ico', 'serviceWorker'], 'babel', 'minify', 'cssmin')
145144
);

0 commit comments

Comments
 (0)