Created
September 6, 2016 22:59
-
-
Save roose/5d684633e0e9971e3a4015dbb153e1f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a { | |
color: $blue; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var autoprefixer = require('autoprefixer'); | |
var csswring = require("csswring") | |
var precss = require("precss") | |
var $ = require('gulp-load-plugins')(); | |
gulp.task('css', () => { | |
const processors = [ | |
precss(), | |
autoprefixer({browsers: ['last 2 versions']}), | |
csswring | |
]; | |
return gulp.src('src/css/main.css') | |
.pipe($.sourcemaps.init()) | |
.pipe($.postcss(processors)) | |
.pipe($.sourcemaps.write('.')) | |
.pipe(gulp.dest('dist/css')) | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background: $blue; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$blue: #056ef0; | |
@import "base.css"; | |
@import "parts/header.css"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Firefox показывает у
body
base.css:3
хотя должно бытьheader.css:3
как в Chrome, если убрать минификацию, то все ок