mercredi 28 octobre 2015

laravel babel not babeling ...

Consider the following:

var RecentSignups = require('./company_admin/dashboard/recent_signups');
var CapitalRaised = require('./company_admin/dashboard/capital_raised');
var InvestmentTransactions = require('./company_admin/dashboard/investment_transactions');
var InvestorsCurrentlySignedIn = require('./company_admin/dashboard/investors_signed_in_today');
var InvestorsSignedUp = require('./company_admin/dashboard/investors_signed_up');
var CompanyEvents = require('./company_admin/dashboard/company_events');
var RecentInvestments = require('./company_admin/dashboard/recent_investments');
var InvestorsTable = require('./company_admin/dashboard/investors_table');

Now consider the following elixir command for gulp:

elixir(function(mix) {
  mix.sass(bootstrapPaths, 'public/css/bootstrap.css')
       .sass('admin.scss', 'public/css/admin.css')
       .babel([
         '/react/react_app.js',
       ])
       .sass([
           'company_admin/company_admin.scss',
       ], 'public/css/company_admin.css')
       .phpUnit();
});

No errors are spit out, how ever:

'use strict';

var RecentSignups = require('./company_admin/dashboard/recent_signups');
var CapitalRaised = require('./company_admin/dashboard/capital_raised');
var InvestmentTransactions = require('./company_admin/dashboard/investment_transactions');
var InvestorsCurrentlySignedIn = require('./company_admin/dashboard/investors_signed_in_today');
var InvestorsSignedUp = require('./company_admin/dashboard/investors_signed_up');
var CompanyEvents = require('./company_admin/dashboard/company_events');
var RecentInvestments = require('./company_admin/dashboard/recent_investments');
var InvestorsTable = require('./company_admin/dashboard/investors_table');
//# sourceMappingURL=all.js.map

This is not right. Why didn't it essentially "require"? I am using laravel 5.1 and elixir 3.4.x



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire