Answer the question
In order to leave comments, you need to log in
grunt clean error?
"use strict";
module.exports = function(grunt) {
grunt.loadNpmTasks("grunt-browser-sync");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-postcss");
grunt.loadNpmTasks("grunt-sass");
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.initConfig({
sass: {
style: {
files: {
"css/style.css": "sass/style.scss"
}
}
},
copy: {
build: {
files: [{
expand: true,
src: [
"fonts/**/*.{woff, woff2}",
"img/**",
"js/**",
"*.html"
],
dest: "build"
}]
}
},
сlean: {
build: ["build"]
},
postcss: {
style: {
options: {
processors: [
require("autoprefixer")({browsers: [
"last 1 version",
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Opera versions",
"last 2 Edge versions"
]})
]
},
src: "css/*.css"
}
},
browserSync: {
server: {
bsFiles: {
src: [
"*.html",
"css/*.css"
]
},
options: {
server: ".",
watchTask: true,
notify: false,
open: true,
ui: false
}
}
},
watch: {
style: {
files: ["sass/**/*.{scss,sass}"],
tasks: ["sass", "postcss"],
options: {
spawn: false
}
}
}
});
grunt.registerTask("serve", ["browserSync", "watch"]);
grunt.registerTask("build", [
"clean",
"copy",
"sass",
"postcss",
"csso",
"imagemin"
]);
};
Hello everyone, plz tell me, in the console I use the grunt clean command and instead of executing I get "No "clean" targets found." The task is installed, the simplest configuration is written, but the problem remains, how can I solve it?
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