drupal-image-style-generator 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import log from "fancy-log";
|
|
2
|
-
|
|
3
1
|
const REQUIRED_OPTIONS = ['themePath', 'themeName', 'syncFolder']
|
|
4
2
|
|
|
5
3
|
/**
|
|
@@ -19,8 +17,9 @@ module.exports = function (options) {
|
|
|
19
17
|
const IMAGE_STYLE_GRID_SIZE = options.gridSize || 0; // this means, every style will be rounded up to the next divisible number of this
|
|
20
18
|
|
|
21
19
|
const { v4 } = require("uuid");
|
|
22
|
-
const yaml
|
|
23
|
-
const fs
|
|
20
|
+
const yaml = require('js-yaml');
|
|
21
|
+
const fs = require('fs');
|
|
22
|
+
const log = require('fancy-log');
|
|
24
23
|
const breakpointsFile = themePath + '/' + themeName + '.breakpoints.yml';
|
|
25
24
|
const imageStyles = {};
|
|
26
25
|
const usedStyleConfigs = {};
|