Questions tagged [google-web-starter-kit]

A mobile-first, responsive, and performance proven framework for developing the modern web from Google Web Starter Kit is no longer supported.

Google Web Starter Kit

A mobile-first, responsive, and performance proven framework for developing the modern web

10 questions
3
votes
0 answers

ES6 in Google Web-starter-kit - Uncaught ReferenceError: require is not defined

After removing the line "only": "gulpfile.babel.js", in the .babelrc file, I created a class: export default class App { constructor() { console.log("Cool") } } Then, I imported it in the first line of the default main.js, and called…
Downhillski
  • 2,555
  • 2
  • 27
  • 39
3
votes
0 answers

How do I add Bower provided javascript to Google's Web Starter Kit

I've installed some Bower packages, and would like to include them in the Gulp build process. I've tried adding them to gulpfile.babel.js in the script section: gulp.task('scripts', () => gulp.src([ // Note: Since we are not using useref…
Constant Meiring
  • 3,285
  • 3
  • 40
  • 52
1
vote
1 answer

Detect click on notification in web starter kit

I am using Google Web Starter kit and notification can be shown using service worker. navigator.serviceWorker.getRegistration().then(function(reg) { var options = { body: body }; reg.showNotification(title, options); }); I would…
1
vote
0 answers

How to use (not install) Google Web Starter Kit?

I created my website using Bootstrap, but now I'd like to move it to Google Web Starter Kit (GWSK). I installed as explained everywhere on internet, and everything works. However, now I'm not sure what to do now. First I'm not sure why there is a…
whiteShadow
  • 369
  • 4
  • 19
1
vote
1 answer

Running 'gulp-preprocess' as part of 'gulp serve' task

I am basing my project off Google Web Starter Kit and am looking to integrate gulp-preprocess into the gulp pipeline. I have managed to get it to work for the gulp serve:dist task, the relevant code is: gulp.task('htmlIncludes', function() { …
Gids
  • 722
  • 1
  • 8
  • 18
1
vote
1 answer

How to incorporate Google's Web Starter Kit in a Middleman project?

Just found the Google's New Web Starter Kit today and I like it much. BUT, how would I go about incorporating the baseline HTML, CSS/SASS, JS, etc... into a Middleman project? I would imagine the answer would also apply to other frameworks like…
wgpubs
  • 8,131
  • 15
  • 62
  • 109
0
votes
1 answer

Susy with Google Web Starter Kit

Wondering where I went wrong? Trying to get Susy working with Google Web Starter Kit. 1.Cloned GWSK into new directory. 2.Ran yarn to install dependencies. 3.Installed Susy: yarn add susy --dev 4.Added to gulplfile: /* gulpfile.babel.js…
skube
  • 5,867
  • 9
  • 53
  • 77
0
votes
1 answer

How to add more script files in Google Web Starter Kit?

I am trying to start a new project with Web Starter Kit from Google. Thing is if I add another script alongside the main.js, then it doesn't seem to be compiled to dist folder, nor included inside the main.js Any ideas?
Aurimas
  • 2,577
  • 5
  • 26
  • 37
0
votes
1 answer

Google web starter kit gulp serve error

I want to start using Google web starter kit. I installed node, ruby, gulp and npm C:\Users\Greg>node -v v4.1.1 C:\Users\Greg>ruby -v ruby 2.2.3p173 (2015-08-18 revision 51636) [x64-mingw32] C:\Users\Greg>npm -v 2.14.4 C:\Users\Greg>gulp…
Greg
  • 85
  • 1
  • 3
  • 11
0
votes
0 answers

Dist build of Google web app starter kit has different font than original

I am able to compile my web page using Google's Web App Starter Kit. However, upon running gulp serve:dist, my page is brought up with a different looking font than the default Roboto Condensed I expect. Instead, the font changes to what seemingly…
Ehnree
  • 1