Search Posts

Category: gruntjs

Grunt uglify using babel not working es6

For the past day I have been struggling with minifying my angularJs file. The file is in es6 format. The angularJs file var myApp = angular.module(‘myApp’, [‘ui.router’, ‘testData’]); angular.element(document).ready(() => { window.xxx = xxx(‘path’); window.xxx.init({ onLoad: ‘login-required’ }) .success((authenticated) => { //code }) .error(function() { window.location.reload(); }); }); myApp.config(function($stateProvider, $urlRouterProvider, $httpProvider) { $httpProvider.interceptors.push(‘authInterceptor’); //ui router code }); myApp.factory(‘authInterceptor’, function($q, Auth) { return { request: function (config) { //code return deferred.promise; } }; }); The package.json […]

How to load css file from bower component

I am using grunt in my angularjs one project. I have created the project using yeoman. I have used emojionearea emojis in my project the link is here. According to docs css and js file should me included in project. I have installed the package and include it in my bower.json file like here “dependencies”: { “angular”: “^1.5.0”, “bootstrap”: “^3.2.0”, “angular-animate”: “^1.5.0”, “emojionearea”: “3.0.0” }, when I try to run the project using grunt serve […]