Move config back into gulpfile
This commit is contained in:
parent
d9a72dd222
commit
baf2138920
|
@ -1,17 +0,0 @@
|
|||
module.exports = function(plugins) {
|
||||
return {
|
||||
bowerDir: 'vendor/bower_components',
|
||||
fontsDir: 'source/assets/fonts',
|
||||
js: {
|
||||
sourceDir: 'assets/js',
|
||||
outputDir: 'source/assets/js',
|
||||
pattern: '/**/*.js'
|
||||
},
|
||||
production: !!plugins.util.env.production,
|
||||
sass: {
|
||||
sourceDir: 'assets/sass',
|
||||
pattern: '/**/*.sass',
|
||||
outputDir: 'source/assets/css'
|
||||
}
|
||||
};
|
||||
}
|
16
gulpfile.js
16
gulpfile.js
|
@ -2,9 +2,23 @@
|
|||
|
||||
var gulp = require('gulp');
|
||||
var plugins = require('gulp-load-plugins')();
|
||||
var config = require('./gulpfile.config')(plugins);
|
||||
var del = require('del');
|
||||
|
||||
var config = {
|
||||
bowerDir: 'vendor/bower_components',
|
||||
fontsDir: 'source/assets/fonts',
|
||||
js: {
|
||||
sourceDir: 'assets/js',
|
||||
outputDir: 'source/assets/js',
|
||||
pattern: '/**/*.js'
|
||||
},
|
||||
production: !!plugins.util.env.production,
|
||||
sass: {
|
||||
sourceDir: 'assets/sass',
|
||||
pattern: '/**/*.sass',
|
||||
outputDir: 'source/assets/css'
|
||||
}
|
||||
};
|
||||
var app = {};
|
||||
|
||||
app.sass = function(paths, filename) {
|
||||
|
|
Reference in a new issue