Javascript Grunt构建不';t在内部版本中组合样式:css(.tmp)
我使用约曼角度发生器和Grunt作为前端。在index.html中的build:css(.tmp)部分中,我添加了几个css文件,但只添加了build中main.css文件中生成的第一个和sass文件Javascript Grunt构建不';t在内部版本中组合样式:css(.tmp),javascript,html,gruntjs,frontend,yeoman,Javascript,Html,Gruntjs,Frontend,Yeoman,我使用约曼角度发生器和Grunt作为前端。在index.html中的build:css(.tmp)部分中,我添加了几个css文件,但只添加了build中main.css文件中生成的第一个和sass文件 <!-- build:css(.tmp) styles/main.css --> <link rel="stylesheet" href="styles/components-scss.css"> <link rel="stylesheet" href="styles
<!-- build:css(.tmp) styles/main.css -->
<link rel="stylesheet" href="styles/components-scss.css">
<link rel="stylesheet" href="styles/register.css">
<link rel="stylesheet" href="styles/style.css">
<link rel="stylesheet" href="styles/custom.css">
<!-- endbuild -->
componets-scss.css包含引导sass文件加载和字体设置。另一种样式是普通样式。在Grunt构建中,第一个文件(componets scss.css)组合并缩小了引导和字体
在Grunt serve mod中,每件事都很好地工作。我换成这件,现在它工作了
<!-- build:css(.tmp) styles/main.css -->
<link rel="stylesheet" href="styles/components-scss.css">
<!-- endbuild -->
<!-- build:css styles/main.css -->
<link rel="stylesheet" href="styles/register.css">
<link rel="stylesheet" href="styles/style.css">
<link rel="stylesheet" href="styles/custom.css">
<!-- endbuild -->