mirror of
https://github.com/primer/css.git
synced 2024-11-11 04:00:54 +03:00
Add autoprefixer to our docs CSS, update default task to build docs and run it
This commit is contained in:
parent
c5bf85e179
commit
5be5c91d86
@ -26,6 +26,9 @@ module.exports = function(grunt) {
|
||||
dist: {
|
||||
src: 'css/*.css'
|
||||
},
|
||||
docs: {
|
||||
src: '_site/*.css'
|
||||
}
|
||||
},
|
||||
|
||||
// Runs CSS reporting
|
||||
@ -60,7 +63,7 @@ module.exports = function(grunt) {
|
||||
|
||||
watch: {
|
||||
sass: {
|
||||
files: 'scss/**/*.scss',
|
||||
files: ['scss/**/*.scss', 'docs/docs.scss'],
|
||||
tasks: ['sass', 'autoprefixer', 'parker']
|
||||
}
|
||||
},
|
||||
@ -98,7 +101,7 @@ module.exports = function(grunt) {
|
||||
grunt.loadNpmTasks('grunt-sass');
|
||||
|
||||
// Generate and format the CSS
|
||||
grunt.registerTask('default', ['sass', 'autoprefixer', 'parker']);
|
||||
grunt.registerTask('default', ['sass', 'jekyll', 'autoprefixer', 'parker']);
|
||||
|
||||
// Publish to GitHub
|
||||
grunt.registerTask('publish', ['jekyll', 'buildcontrol:pages']);
|
||||
|
Loading…
Reference in New Issue
Block a user