diff --git a/build/grunt/config/browserSync.js b/build/grunt/config/browserSync.js index 652c649..49f3f1a 100644 --- a/build/grunt/config/browserSync.js +++ b/build/grunt/config/browserSync.js @@ -1,5 +1,6 @@ module.exports = { options: { + open : false, proxy : 'localhost', port : 3000, watchTask : true, diff --git a/build/grunt/config/browserify.js b/build/grunt/config/browserify.js index be8b7c8..afb52d6 100644 --- a/build/grunt/config/browserify.js +++ b/build/grunt/config/browserify.js @@ -5,7 +5,12 @@ module.exports = { }, exclude: "", transform: [ - [ 'babelify', { presets: [ 'es2015' ] } ] + ['babelify', { + presets: ['es2015'], + plugins: [ + ['transform-es2015-classes', {loose: true}] + ] + }] ] }, dev: { diff --git a/package.json b/package.json index a2b6088..6e83798 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "devDependencies": { "autoprefixer": "0.0.0", "babel-preset-es2015": "0.0.0", + "babel-plugin-transform-es2015-classes": "0.0.0", "babelify": "0.0.0", "eslint-tap": "0.0.0", "glob": "0.0.0", diff --git a/www/assets/scripts/app.js b/www/assets/scripts/app.js index b8da575..f0558a2 100644 --- a/www/assets/scripts/app.js +++ b/www/assets/scripts/app.js @@ -1,9 +1,6 @@ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o