nightlycommit / css-source-map-rebase Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Currently, the rebase
event only comes with the rebased URL. It could be very convenient for middlewares to also pass the original URL (for example '../foo.png') and the resolved URL (i.e. before rebasing).
A source map should be provided by the rebaser to map between the original stylesheet and the rebased one.
dart-sass source maps use the file:
protocol. They are also parsed differently by the source-map library.
Currently, the rebaser returns the rebased stylesheet but no source map of the changes made to the stylesheet. This should be provided.
Test case:
.foo {
fill: url(#foo);
}
Currently, types are declared in the Rebaser.d.ts file. They should be declared by the main definition file to ease the life of the consumers of the library.
css-source-map-rebase is formatting-destructive. It should only mutate the content of the stylesheet, not its formatting.
I have this code for generating a less stylesheet and combine it with a sass stylesheet.
How would the rebaser logic fit in this?
gulp.task('less', function () {
var lessStream = gulp.src('./style.less')
.pipe(less({
relativeUrls: true,
sourceMap: true,
}).on('error', function (err) {
console.log(err.message);
}))
var scssStream = gulp.src('./style.sass')
.pipe(sass())
return merge(lessStream, scssStream)
.pipe(cssmin().on('error', function(err) {
console.log(err);
}))
.pipe(rename('closure.css'))
.pipe(gulp.dest('../css/'));
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.