所以这就是我的咕噜声:
concat: {
css: {
src: [
'assets/**.scss.liquid', 'assets/**.css'
],
dest: 'assets/build.scss.liquid',
}
},
sass: {
dist: {
options: {
style: 'compressed',
sourcemap: 'none',
noCache: true
},
files: {
'assets/build.css.liquid':'assets/build.scss.liquid'
}
}
}
SCSS:
.all-collection {
padding-top: 50px;
height: 100%;
width: 100%;
color: white !important;
justify-content: center;
display: flex;
p {
color: white !important;
}
}
这是运行后返回的内容,grunt concat
并且grunt sass
:
Error: Invalid CSS after "50px": expected expression (e.g. 1px, bold), was ";"
on line 2 of all-collection.scss
我尝试删除;
它指定的行,但错误只是更改为具有;
. 不知道为什么它会给出这个错误。