gulp - Use the gulpfiles .tmp-folder -
im trying head around gulp , using. yeoman´s webapp
im trying add css-files project , end in dist/styles-folder.
when adding scss-files app/styles-folder , build project, files end in .tmp-folder. suppose task it:
gulp.task('styles', () => { return gulp.src('app/styles/*.scss') .pipe($.plumber()) .pipe($.sourcemaps.init()) .pipe($.sass.sync({ outputstyle: 'expanded', precision: 10, includepaths: ['.'] }).on('error', $.sass.logerror)) .pipe($.autoprefixer({browsers: ['> 1%', 'last 2 versions', 'firefox esr']})) .pipe($.sourcemaps.write()) .pipe(gulp.dest('.tmp/styles')) .pipe(reload({stream: true})); });
the compiled scss css should thing how them .tmp-folder tom dist/index?
i tried: <link rel="stylesheet" href="./.tmp/styles/style.css">
returned 404 so, cant imagine right way? or swill dist-folder have access .tmp-folder? appreciated. thanks
it seems want set destination folder dist
, not tmp
:
.pipe(gulp.dest('dist/styles'))
Comments
Post a Comment