Fetch the repository succeeded.
'use strict';
const elixir = require('laravel-elixir');
require('laravel-elixir-eslint');
require('./tasks/swPrecache.task.js');
require('./tasks/bower.task.js');
// setting assets paths
elixir.config.assetsPath = './';
elixir.config.css.folder = 'angular';
elixir.config.css.sass.folder = 'angular';
elixir.config.js.folder = 'angular';
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Sass
| file for our application, as well as publishing vendor resources.
|
*/
let assets = [
'public/js/final.js',
'public/css/final.css'
],
scripts = [
'public/js/vendor.js', 'public/js/app.js'
],
styles = [
// for some reason, ./ prefix here works fine!
// it is needed to override elixir.config.css.folder for styles mixin
'./public/css/vendor.css', './public/css/app.css'
],
karmaJsDir = [
'public/js/vendor.js',
'node_modules/angular-mocks/angular-mocks.js',
'node_modules/ng-describe/dist/ng-describe.js',
'public/js/app.js',
'tests/angular/**/*.spec.js'
];
elixir(mix => {
mix.bower()
.copy('angular/app/**/*.html', 'public/views/app/')
.copy('angular/dialogs/**/*.html', 'public/views/dialogs/')
.webpack('index.main.js', 'public/js/app.js')
.sass(['**/*.scss', 'critical.scss'], 'public/css')
.sass('critical.scss', 'public/css/critical.css')
.styles(styles, 'public/css/final.css')
.eslint('angular/**/*.js')
.combine(scripts, 'public/js/final.js')
.version(assets)
.swPrecache();
//enable front-end tests by adding the below task
// .karma({jsDir: karmaJsDir});
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。