有我的項目有如下因素structire:錯誤「無效的UTF-8」編譯與@import青菜時
project
assets
scripts
styles
app.scss
bower_components
node_modules
public
css
app.css
js
bower.json
gulpfile.js
package.json
我用一口-SASS編譯app.scss到app.css,我想包括基金會app.scss
gulp.task('styles', function() {
return gulp.src(path.src.styles)
.pipe(sass({
includePaths: ['./bower_components/foundation/scss']
}))
.pipe(concat('app.css'))
.pipe(gulp.dest(path.public.styles));
})
然後在app.scss文件我白:
@import 'foundation/_settings';
@import 'foundation';
當我運行一飲而盡,我得到:
Error: assets\styles\app.scss
undefined:undefined Invalid UTF-8
怎麼了?
檢查您是否有任何隨機字符,如文件路徑,scss文件內。 – Starx