mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-08 06:46:36 +02:00
Add fquery-autoprefixer.
This commit is contained in:
24
mkrfile.js
24
mkrfile.js
@@ -29,29 +29,7 @@ function getBuildSuffix(callback) {
|
||||
}
|
||||
|
||||
|
||||
$.fn.autoprefixer = function () {
|
||||
|
||||
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-autoprefixer');
|
||||
$.plugin('fquery-cssmin');
|
||||
$.plugin('fquery-handlebars');
|
||||
$.plugin('fquery-includeit');
|
||||
|
@@ -18,6 +18,7 @@
|
||||
"devDependencies": {
|
||||
"autoprefixer-core": "~5.1.8",
|
||||
"fquery": "~0.16.2",
|
||||
"fquery-autoprefixer": "~0.1.1",
|
||||
"fquery-cssmin": "~0.3.0",
|
||||
"fquery-handlebars": "~0.2.0",
|
||||
"fquery-includeit": "~0.2.0",
|
||||
|
Reference in New Issue
Block a user