R
R
rpr3542017-01-06 18:17:06
css
rpr354, 2017-01-06 18:17:06

How to leave the working file unchanged when using cssnano?

I'm trying to learn gupl in conjunction with Phpstorm. It is necessary that css is minified and uploaded to the server automatically.
When running the gulpfile.js task

gulp.task('nano ', function() {
    return gulp.src('assets/templates/css/styles.css')
        .pipe(cssnano())
        .pipe(gulp.dest('assets/templates/css/'));
});

the styles.css file itself is minified, which I don't need. How to make the minification saved in a separate file, and the worker is not touched?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question