gpt4 book ai didi

javascript - 咕噜声 : Dist folder not created after grunt command

转载 作者:行者123 更新时间:2023-11-28 06:09:30 25 4
gpt4 key购买 nike

我是 Grunt 的新手,我需要一些帮助。我到了运行 grunt 命令后应该有一个“Dist”文件夹的地步,但什么也没有发生。我没有任何错误,一切似乎都很好。任何帮助表示赞赏。谢谢

'use strict';

module.exports = function (grunt) {

// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);

// Automatically load required Grunt tasks
require('jit-grunt')(grunt);

// Define the configuration for all the tasks
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

// Make sure code styles are up to par and there are no obvious mistakes
jshint: {
options: {
jshintrc: '.jshintrc',
reporter: require('jshint-stylish')
},
all: {
src: [
'Gruntfile.js',
'app/scripts/{,*/}*.js'
]
}
},
copy: {
dist: {
cwd: 'app',
src: [ '**','!styles/**/*.css','!scripts/**/*.js' ],
dest: 'dist',
expand: true
},
fonts: {
files:[
{
//for bootstrap fonts
expand: true,
dot: true,
cwd: 'bower_components/bootstrap/dist',
src: ['fonts/*.*'],
dest: 'dist'
}, {
//for font-awesome
expand: true,
dot: true,
cwd: 'bower_components/font-awesome',
src: ['fonts/*.*'],
dest: 'dist'
}
]
}
},
clean: {
build:{
src: [ 'dist/']
}
}
});
grunt.registerTask('build', [
'clean',
'jshint',
'copy'
]);
grunt.registerTask('default',['build']);
};

最佳答案

看起来您错过了尾部斜杠。

尝试

dest: 'dist/'

关于javascript - 咕噜声 : Dist folder not created after grunt command,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36538274/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com