1
저는 거의 새로운 각도이고 저는 Angular2 프로젝트에서 작업 중입니다. 브런치에 다음과 같은 CSS 파일을 추가하고 싶습니다. 구문은 무엇입니까? brunch-config.js 또는 index.html에 추가하는 것이 더 좋습니까?브런치에 여러 스타일 시트 추가하기
파일 :
'/app/assets/css/bootstrap.css', '/app/assets/css/custom.css', '/app/assets/css/font-awesome.css', 'http://fonts.googleapis.com/css?family=Open+Sans'
브런치-config.js : 당신은 평소와 같이 @import
CSS에서 규칙 또는 <link>
HTML 요소를 사용하여 글꼴을 가져올 수 있습니다
exports.config = {
// See http://brunch.io/#documentation for docs.
files: {
javascripts: {
joinTo: {
'vendor.js': /^node_modules/,
'main.js': /^app/
},
order: {
after: [/\.html$/, /\.css$/]
}
},
stylesheets: {
joinTo: 'app.css'
},
templates: {
joinTo: 'main.js'
}
},
plugins: {
inlineCss: {
html: true,
passthrough: [/^node_modules/, 'app/global.css']
}
}
};
이 파일을 index.html 문서에 추가하면이 오류가 발생합니다. SourceMap을 파싱하지 못했습니다. http : // localhost : 3333/app.styles.map –