Conversation
| ]; | ||
|
|
||
| gulp.task('styles', ['clean:css'], function () { | ||
| gulp.task('styles', function () { |
There was a problem hiding this comment.
What the reason to removing clean:css task here?
| var watchCss = gulp.watch(sassFiles, options.gulpWatchOptions, ['styles']); | ||
| gulp.task('watch:css', function () { | ||
| gulp.watch(options.theme.css + '**/*.css').on('change', browserSync.reload); | ||
| return watchCss |
Npm tasks
Gulp.
Updates
|
andypost
left a comment
There was a problem hiding this comment.
Moving code around makes review harder
| }); | ||
|
|
||
| // Converts module names to absolute paths for easy imports. | ||
| function sassModuleImporter(url, file, done) { |
There was a problem hiding this comment.
Please do not move code around the file, edit it where it lives
There was a problem hiding this comment.
structure will change more. actually i think this function will be changed with some module.
| "browser-sync": "^2.12.3", | ||
| "chroma-sass": "^1.2.4", | ||
| "del": "^2.2.0", | ||
| "eslint": "^2.9.0", |
There was a problem hiding this comment.
https://www.npmjs.com/package/gulp-eslint we have this. otherwice conflict in load plugins.
| no-debug: 2 | ||
| # no-duplicate-properties: 2 | ||
| no-empty-rulesets: 2 | ||
| no-empty-rulesets: 1 |
There was a problem hiding this comment.
Why setting it to a warning instead of an error? No need to keep empty rules.
https://github.com/sasstools/sass-lint/blob/master/docs/rules/no-empty-rulesets.md
| cache = require('gulp-cached'), | ||
| spritesmith = require('gulp.spritesmith'); | ||
| // Browsersync options | ||
| options.browserSync = { |
There was a problem hiding this comment.
Maybe better to have this one in a separated config file like we do on webpack?
There was a problem hiding this comment.
yep. in future plans.
#44
also we need to move config.
|
'Watch' task work for scss files. Bu i see some issues:
|
|
@hog-seruj
|
No description provided.