0
저장시 내 Sass 코드와 JavaScript를보고 컴 파일하기 위해 쓸데없는 파일을 만들었습니다. 이 기능은 자바 스크립트 부분에서 훌륭하게 작동하지만 어딘가에는 Sass를 컴파일 할 때 실패하고 디렉토리와 파일 이름이 올바르게 지정되어 있어도 사용할 소스 파일을 찾을 수 없습니다.내 grunt/Sass/Ruby 코드에 대해 "No such file or directory found"가 나타나는 이유는 무엇입니까?
I 나타나는 오류는 다음과 같습니다
Running 'sass:dist' <sass> task
Errno:ENOENT No such file or directory - Content/site.scss
이 내 그런트 파일입니다
module.exports = function(grunt) {
var jsSource = [
'Scripts/jquery-1.10.2.js',
'Scripts/jquery.cookie.js',
'Scripts/respond.1.1.0.js',
'Scripts/jquery-ui-1.10.3.custom.js',
'Scripts/script-compensation.js',
'Scripts/webtrends.load.js'
];
var jsDebug = 'scripts/site.js';
var jsRelease = 'scripts/site.min.js';
var jsWatchFiles = ['Scripts/script-compensation.js'];
var cssWatchFiles = ['Content/*.scss'];
var scssSource = ['Content/site.scss'];
// Project configuration.
grunt.initConfig({
concat: {
application: {
src: jsSource,
dest: jsDebug
}
},
uglify: {
options: {
report: 'min'
},
application: {
src: ['<%= concat.application.dest %>'],
dest: jsRelease
}
},
sass: {
options: {
style: 'expanded'
},
dist: {
files: {
'Content/site.css': scssSource
}
}
},
watch: {
js: {
files: jsWatchFiles,
tasks: ['concat']
},
css: {
files: cssWatchFiles,
tasks: ['sass']
}
}
});
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask("default", function(){
grunt.log.writeln("grunt workflow task list:");
grunt.log.writeln("\tgrunt watch - Watch js and scss");
grunt.log.writeln("\t\tWindows: use 'start /d . grunt watch' for background process");
grunt.log.writeln("\tgrunt debug - Build the debug files");
grunt.log.writeln("\tgrunt release - Build the release files");
});
grunt.registerTask('debug', ['concat']);
grunt.registerTask('release', ['concat', 'uglify']);
};
나는 오류가 루비 자체에서 오는 생각하지만, 내가 확신 할 수 없다. 이 문제를 겪고있는 사람이 있습니까? 그렇다면 무엇을 해결해야합니까? 어떤 도움이라도 대단히 감사하겠습니다.