gatsby-background-image
Version:
Lazy-loading React background-image component with optional support for the blur-up effect.
17 lines (14 loc) • 422 B
JavaScript
;
var _SimpleUtils = require("./lib/SimpleUtils");
exports.onCreateWebpackConfig = function (_ref, _ref2) {
var plugins = _ref.plugins,
actions = _ref.actions;
var specialChars = _ref2.specialChars;
if ((0, _SimpleUtils.isString)(specialChars)) {
actions.setWebpackConfig({
plugins: [plugins.define({
__GBI_SPECIAL_CHARS__: JSON.stringify(specialChars)
})]
});
}
};