1
0
mirror of https://github.com/lrsjng/h5ai.git synced 2025-08-09 07:16:40 +02:00

Add fquery-autoprefixer.

This commit is contained in:
Lars Jung
2015-04-09 01:50:20 +02:00
parent bdbaf26e9b
commit ce6680ae19
2 changed files with 2 additions and 23 deletions

View File

@@ -29,29 +29,7 @@ function getBuildSuffix(callback) {
} }
$.fn.autoprefixer = function () { $.plugin('fquery-autoprefixer');
var autoprefixer = require('autoprefixer-core');
var options = {browsers: ['last 2 versions']};
return this.edit(function (blob) {
try {
blob.content = autoprefixer.process(blob.content, options).css;
} catch (e) {
$.report({
type: 'err',
method: 'autoprefixer',
message: e.message,
fquery: this,
blob: blob,
err: e
});
}
});
};
$.plugin('fquery-cssmin'); $.plugin('fquery-cssmin');
$.plugin('fquery-handlebars'); $.plugin('fquery-handlebars');
$.plugin('fquery-includeit'); $.plugin('fquery-includeit');

View File

@@ -18,6 +18,7 @@
"devDependencies": { "devDependencies": {
"autoprefixer-core": "~5.1.8", "autoprefixer-core": "~5.1.8",
"fquery": "~0.16.2", "fquery": "~0.16.2",
"fquery-autoprefixer": "~0.1.1",
"fquery-cssmin": "~0.3.0", "fquery-cssmin": "~0.3.0",
"fquery-handlebars": "~0.2.0", "fquery-handlebars": "~0.2.0",
"fquery-includeit": "~0.2.0", "fquery-includeit": "~0.2.0",