Javascript 自动concat bower css
在我的源HTML中,我有:Javascript 自动concat bower css,javascript,html,css,gruntjs,bower,Javascript,Html,Css,Gruntjs,Bower,在我的源HTML中,我有: <!-- bower:css --> <link rel="stylesheet" href="../bower_components/angular-ui-notification/dist/angular-ui-notification.css" /> <link rel="stylesheet" href="../bower_components/bootstrap-select/dist/css/bootstrap-select.
<!-- bower:css -->
<link rel="stylesheet" href="../bower_components/angular-ui-notification/dist/angular-ui-notification.css" />
<link rel="stylesheet" href="../bower_components/bootstrap-select/dist/css/bootstrap-select.css" />
<link rel="stylesheet" href="../bower_components/nya-bootstrap-select/dist/nya-bs-select.css" />
<!-- endbower -->
在html中
< !-- bower:js -->
< !-- endbower -->
三,
然后我得到了很好的working panel.min.js和带有此文件链接的HTML
< !-- bower:js -->
< !-- endbower -->
bower_concat: {
dist: {
dest: 'src/temp/js/panel-dep.js',
cssDest: 'src/temp/css/panel-dep.css',
bowerOptions: {
relative: false
},
mainFiles: {
package: [ 'path/to/its/file.css' ]
}
}
},
uglify:{
options:{
manage: false
},
dist:{
files:{
'dist/js/panel.min.js': ['src/temp/js/**/*.js']
}
}
},