mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-28 20:52:21 +01:00
Simplify tasks a little bit.
This commit is contained in:
parent
f750f7e448
commit
b39a8c77c3
44
Gruntfile.js
44
Gruntfile.js
@ -245,13 +245,13 @@ module.exports = function (grunt) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
cssmin: {
|
cssmin: {
|
||||||
compress: {
|
options: {
|
||||||
options: {
|
keepSpecialComments: '*',
|
||||||
keepSpecialComments: '*',
|
noAdvanced: true, // turn advanced optimizations off until the issue is fixed in clean-css
|
||||||
noAdvanced: true, // turn advanced optimizations off until the issue is fixed in clean-css
|
report: 'min',
|
||||||
report: 'min',
|
compatibility: 'ie8'
|
||||||
compatibility: 'ie8'
|
},
|
||||||
},
|
docs: {
|
||||||
src: [
|
src: [
|
||||||
'docs/assets/css/src/docs.css',
|
'docs/assets/css/src/docs.css',
|
||||||
'docs/assets/css/src/pygments-manni.css'
|
'docs/assets/css/src/pygments-manni.css'
|
||||||
@ -261,21 +261,12 @@ module.exports = function (grunt) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
usebanner: {
|
usebanner: {
|
||||||
dist: {
|
options: {
|
||||||
options: {
|
position: 'top',
|
||||||
position: 'top',
|
banner: '<%= banner %>'
|
||||||
banner: '<%= banner %>'
|
},
|
||||||
},
|
files: {
|
||||||
files: {
|
src: 'dist/css/*.css'
|
||||||
src: [
|
|
||||||
'dist/css/<%= pkg.name %>.css',
|
|
||||||
'dist/css/<%= pkg.name %>-rtl.css',
|
|
||||||
'dist/css/<%= pkg.name %>.min.css',
|
|
||||||
'dist/css/<%= pkg.name %>-rtl.min.css',
|
|
||||||
'dist/css/<%= pkg.name %>-theme.css',
|
|
||||||
'dist/css/<%= pkg.name %>-theme.min.css'
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -284,11 +275,10 @@ module.exports = function (grunt) {
|
|||||||
config: 'less/.csscomb.json'
|
config: 'less/.csscomb.json'
|
||||||
},
|
},
|
||||||
dist: {
|
dist: {
|
||||||
files: {
|
expand: true,
|
||||||
'dist/css/<%= pkg.name %>.css': 'dist/css/<%= pkg.name %>.css',
|
cwd: 'dist/css/',
|
||||||
'dist/css/<%= pkg.name %>-rtl.css': 'dist/css/<%= pkg.name %>-rtl.css',
|
src: ['*.css', '!*.min.css'],
|
||||||
'dist/css/<%= pkg.name %>-theme.css': 'dist/css/<%= pkg.name %>-theme.css'
|
dest: 'dist/css/'
|
||||||
}
|
|
||||||
},
|
},
|
||||||
examples: {
|
examples: {
|
||||||
expand: true,
|
expand: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user