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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -