Skip to content

Instantly share code, notes, and snippets.

@roose roose/base.css
Created Sep 6, 2016

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner 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
You can’t perform that action at this time.