Skip to content

Commit 36a012c

Browse files
committed
fix(ticks): Add autoprefixer for CSS builds to prefix transform
close #472
1 parent ec5cb57 commit 36a012c

File tree

10 files changed

+61
-50
lines changed

10 files changed

+61
-50
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 5.8.9 (2016-12-11)
2+
## Improvement
3+
- Add autoprefixer for CSS builds (#472)
4+
15
# 5.8.8 (2016-12-11)
26
## Fix
37
- Prevent angular being loaded twice when using with browserify (#474)

Gruntfile.js

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module.exports = function(grunt) {
22
var banner = '/*! <%= pkg.name %> - v<%= pkg.version %> - \n' +
3-
' (c) <%= pkg.author %> - \n'+
4-
' <%= pkg.repository.url %> - \n' +
5-
' <%= grunt.template.today("yyyy-mm-dd") %> */\n',
3+
' (c) <%= pkg.author %> - \n' +
4+
' <%= pkg.repository.url %> - \n' +
5+
' <%= grunt.template.today("yyyy-mm-dd") %> */\n',
66
minBanner = banner.replace(/\n/g, '') + '\n';
77

88
// Project configuration.
@@ -155,6 +155,19 @@ module.exports = function(grunt) {
155155
{expand: false, src: ['dist/rzslider.css'], dest: 'dist/rzslider.scss'},
156156
]
157157
}
158+
},
159+
postcss: {
160+
options: {
161+
map: true,
162+
processors: [
163+
require('autoprefixer')({
164+
browsers: ['> 1%', 'last 2 versions', 'Firefox ESR']
165+
})
166+
]
167+
},
168+
dist: {
169+
src: 'dist/rzslider.css'
170+
}
158171
}
159172
});
160173

@@ -168,10 +181,11 @@ module.exports = function(grunt) {
168181
grunt.loadNpmTasks('grunt-serve');
169182
grunt.loadNpmTasks('grunt-karma');
170183
grunt.loadNpmTasks('grunt-contrib-copy');
184+
grunt.loadNpmTasks('grunt-postcss');
171185

172186
grunt.registerTask('default', ['css', 'js']);
173187
grunt.registerTask('test', ['karma']);
174188

175-
grunt.registerTask('css', ['recess','concat:css', 'copy:copyToSass']);
176-
grunt.registerTask('js', ['ngtemplates', 'replace','concat:js', 'ngAnnotate', 'uglify']);
189+
grunt.registerTask('css', ['recess', 'concat:css', 'postcss:dist', 'copy:copyToSass']);
190+
grunt.registerTask('js', ['ngtemplates', 'replace', 'concat:js', 'ngAnnotate', 'uglify']);
177191
};

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angularjs-slider",
3-
"version": "5.8.8",
3+
"version": "5.8.9",
44
"homepage": "https://github.com/angular-slider/angularjs-slider",
55
"authors": [
66
"Rafal Zajac <[email protected]>",

dist/rzslider.css

Lines changed: 15 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rzslider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! angularjs-slider - v5.8.8 -
1+
/*! angularjs-slider - v5.8.9 -
22
(c) Rafal Zajac <[email protected]>, Valentin Hervieu <[email protected]>, Jussi Saarivirta <[email protected]>, Angelin Sirbu <[email protected]> -
33
https://github.com/angular-slider/angularjs-slider -
44
2016-12-11 */

0 commit comments

Comments
 (0)