--no-cache --update $FileName$:$FileParentDir$/css/$FileNameWithoutExtension$.css
$FileParentDir$/css/$FileNameWithoutExtension$.css
Есть ли профессии типо java front-end или что-то такое?
/usr/bin/node /home/**********/Dropbox/Projects/Work2016/eGARAGE/node_modules/gulp/bin/gulp.js --color --gulpfile /home/**********/Dropbox/Projects/Work2016/eGARAGE/gulpfile.js default
[23:54:08] Using gulpfile ~/Dropbox/Projects/Work2016/eGARAGE/gulpfile.js
[23:54:08] Starting 'styles:vendor'...
[23:54:08] Finished 'styles:vendor' after 70 ms
[23:54:08] Starting 'styles'...
[23:54:08] Finished 'styles' after 21 ms
[23:54:08] Starting 'js:vendor'...
[23:54:08] Finished 'js:vendor' after 15 ms
[23:54:08] Starting 'js'...
[23:54:08] Finished 'js' after 11 ms
[23:54:08] Starting 'images'...
[23:54:08] Starting 'sprite'...
[23:54:08] Starting 'fonts'...
[23:54:08] Starting 'html'...
[23:54:08] Finished 'html' after 4.28 ms
[23:54:08] Starting 'webServer'...
[23:54:08] Finished 'webServer' after 19 ms
[23:54:08] Starting 'openBrowser'...
[23:54:08] Finished 'openBrowser' after 7.64 ms
[23:54:08] Starting 'watch'...
[23:54:08] Finished 'watch' after 81 ms
[23:54:08] Server started http://localhost:9001
[23:54:08] LiveReload started on port 35729
[23:54:09] Starting 'styles'...
[23:54:09] Finished 'styles' after 9.13 ms
[23:54:10] Finished 'sprite' after 1.84 s
[23:54:10] Starting 'html'...
[23:54:10] Finished 'html' after 6.94 ms
[23:54:10] Finished 'fonts' after 1.91 s
[23:54:19] gulp-ruby-sass: write main.css
[23:54:20] gulp-ruby-sass: write main.css
[23:54:24] gulp-imagemin: Minified 14 images (saved 715.14 kB - 22%)
[23:54:24] Finished 'images' after 17 s
[23:54:24] Starting 'build'...
[23:54:24] Finished 'build' after 13 μs
[23:54:24] Starting 'default'...
[23:54:24] Finished 'default' after 9.83 μs
<link href="https://fonts.googleapis.com/css?family=Lato:100i,300,400,400i,700,900" rel="stylesheet">
Error: Invalid CSS after " strong, b {} }": expected 1 selector or at-rule
gulp.task('styles', function() {
gulp.src(src.sass)
.pipe(sass({
"sourcemap=none": true,
noCache: true,
compass: true,
style: sassStyle,
lineNumbers: false
}))
.pipe(autoPrefixer())
.pipe(gulp.dest(outputDir + 'css'))
.pipe(connect.reload())
});
1. вопрос где он должен находится в app или в корне www ?в корне
2. Можно ли вообще без этого файла обойтись, если да то как ?нет
gulp.task('compass', function() {
gulp.src('./app/scss/**/*.scss')
.pipe(debug())
.pipe(plumber({
errorHandler: function (error) {
console.log(error.message);
this.emit('end');
}}))
.pipe(sourcemaps.init())
.pipe(compass({
config_file: './config.rb',
sass: './app/scss',
css: './app/css'
}))
.pipe(debug())
.pipe(urlAdjuster({
replace: ['/app/img','/img']
}))
.pipe(minifyCSS({compatibility: 'ie8'}))
.pipe(debug())
.pipe(rename('style.min.css'))
.pipe(csso())
.pipe(sourcemaps.write('./maps'))
.pipe(gulp.dest('./dist/css'))
.pipe(reload({stream: true}));
});
var sass: ['./src/sass/main.{scss,sass}'] //вынес как переменную
gulp.task('styles', function() {
gulp.src(src.sass)
.pipe(sass({
"sourcemap=none": true,
noCache: true,
compass: true,
style: sassStyle,
lineNumbers: sassComments
}))
.pipe(autoPrefixer())
.pipe(gulp.dest(outputDir + 'css'))
.pipe(connect.reload()) //в данном случае на browser-sync, но сути дела не меняет
});
return sass('assets/css/main.sass')
sass в css...