Semantic-ui: [Gulp] Add Source Maps

Created on 24 Apr 2015  路  8Comments  路  Source: Semantic-Org/Semantic-UI

Hi!

Just wondering if there are plans for adding sourcemap support so that one could more easily debug the less code? I fiddled around and got it to work for the normal .css but to get it working I had to comment out autoprefixer and I also had to inline the sourcemap into the css-file which is obviosly less than ideal.

build.js

19  sourcemaps   = require('gulp-sourcemaps'),
...

68 // unified css stream
69  stream = gulp.src(source.definitions + '/**/' + globs.components + '.less')
70    .pipe(plumber())
71    .pipe(sourcemaps.init())
72    .pipe(less(settings.less))
73    .pipe(sourcemaps.write('.'))
74    // .pipe(autoprefixer(settings.prefix))
75    // .pipe(replace(comments.variables.in, comments.variables.out))
76    // .pipe(replace(comments.license.in, comments.license.out))
77    // .pipe(replace(comments.large.in, comments.large.out))
78    // .pipe(replace(comments.small.in, comments.small.out))
79    // .pipe(replace(comments.tiny.in, comments.tiny.out))
80    .pipe(flatten())
81 ;

Build Tools Enhancement stale

All 8 comments

I originally added source maps but had difficulty with some gulp plugins which at the time did not support them. I would accept any PR that added.

Any update on this?

Interested in this as well.

+1
Today me need to be interesting this

Any update? It will a be very useful feature

@jlukic, has there been any further developments about css source maps? This is an important feature for writing and debugging themes, etc.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

closed ? stale ? no !!! any hint on how to use sourcemaps when developing themes ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davialexandre picture davialexandre  路  3Comments

rdzidziguri picture rdzidziguri  路  3Comments

sarbona picture sarbona  路  3Comments

guilhermeblanco picture guilhermeblanco  路  3Comments

iPaoo picture iPaoo  路  3Comments