Answer the question
In order to leave comments, you need to log in
How to make correct paths for Gulp in Laravel?
Main page - Blade template, located in /resources/views
The blocks that make up the main page are located in /resources/views/widgets and are included in the main file. In the browser, the main is available localhost/directory/index. I need to use the uncss plugin to remove unused styles. How can I correctly write the paths in the files?
At the moment the gulpfile.js file looks like this
var gulp = require('gulp');
var uncss = require('gulp-uncss');
gulp.task('uncss', function() {
return gulp.src('/media/default/default_mobile.css')
.pipe(
uncss({
html: ['http://localhost/index'],
stylesheets: ['http://localhost/media/css/default/default_mobile.css']
}))
.pipe(gulp.dest('http://localhost/media/css/gulp/'));
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question