Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@roose
Created September 6, 2016 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roose/5d684633e0e9971e3a4015dbb153e1f1 to your computer and use it in GitHub Desktop.
Save roose/5d684633e0e9971e3a4015dbb153e1f1 to your computer and use it in GitHub Desktop.
a {
color: $blue;
}
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'))
});
body {
background: $blue;
}
$blue: #056ef0;
@import "base.css";
@import "parts/header.css";
@roose
Copy link
Author

roose commented Sep 6, 2016

Firefox показывает у body base.css:3 хотя должно быть header.css:3 как в Chrome, если убрать минификацию, то все ок

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment