[Ivan Diaz] - Move sass files to all the app and core-components. Also, use gulp-sass-bulk-import
This commit is contained in:
parent
2470809e86
commit
7016f342d0
|
@ -15,7 +15,7 @@ module.exports = {
|
|||
},
|
||||
|
||||
'styles': {
|
||||
'src': './src/styles/**/*.scss',
|
||||
'src': './src/**/*.scss',
|
||||
'dest': './build/css/'
|
||||
},
|
||||
|
||||
|
|
|
@ -5,12 +5,14 @@ var sass = require('gulp-sass');
|
|||
var gulpif = require('gulp-if');
|
||||
var browserSync = require('browser-sync');
|
||||
var autoprefixer = require('gulp-autoprefixer');
|
||||
var bulkSass = require('gulp-sass-bulk-import');
|
||||
var handleErrors = require('../util/handle-errors');
|
||||
var config = require('../config');
|
||||
|
||||
gulp.task('sass', function () {
|
||||
|
||||
return gulp.src(config.styles.src)
|
||||
.pipe(bulkSass())
|
||||
.pipe(sass({
|
||||
sourceComments: global.isProd ? 'none' : 'map',
|
||||
sourceMap: 'sass',
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
"gulp-notify": "^2.2.0",
|
||||
"gulp-rename": "^1.2.2",
|
||||
"gulp-sass": "^2.0.x",
|
||||
"gulp-sass-bulk-import": "^0.3.2",
|
||||
"gulp-sourcemaps": "^1.5.2",
|
||||
"gulp-streamify": "0.0.5",
|
||||
"gulp-uglify": "^1.2.0",
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
@import "../scss/vars";
|
||||
|
||||
.button {
|
||||
|
||||
&:focus {
|
|
@ -0,0 +1,7 @@
|
|||
@import 'scss/reset';
|
||||
@import 'scss/vars';
|
||||
@import 'scss/typography';
|
||||
@import 'scss/base';
|
||||
|
||||
@import 'core-components/*';
|
||||
@import 'app/*';
|
|
@ -1,4 +0,0 @@
|
|||
footer {
|
||||
height: 50px;
|
||||
background: #eeeeee;
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
header {
|
||||
height: 50px;
|
||||
background: #eeeeee;
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
@import 'reset';
|
||||
@import 'vars';
|
||||
@import 'typography';
|
||||
@import 'base';
|
||||
|
||||
@import 'core-components/button';
|
||||
@import 'core-components/widget';
|
||||
|
||||
@import 'app-components/main-layout';
|
||||
@import 'app-components/footer';
|
Loading…
Reference in New Issue