punchcutter 2.0.18 → 2.1.0
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/lib/buildPngSprite.js +5 -12
- package/package.json +2 -2
package/lib/buildPngSprite.js
CHANGED
|
@@ -8,7 +8,7 @@ const globby = require('globby');
|
|
|
8
8
|
const path = require('path');
|
|
9
9
|
const postcss = require('postcss');
|
|
10
10
|
const Promise = require('bluebird');
|
|
11
|
-
const sass = require('
|
|
11
|
+
const sass = require('sass-embedded');
|
|
12
12
|
const Spritesmith = require('spritesmith');
|
|
13
13
|
const nunjucks = require('nunjucks');
|
|
14
14
|
const packageJson = require('../package.json');
|
|
@@ -148,17 +148,10 @@ module.exports = function (config) {
|
|
|
148
148
|
Promise.mapSeries(config.build.stylesheets, function (stylesheet) {
|
|
149
149
|
if (stylesheet === 'css') {
|
|
150
150
|
return postcss([autoprefixer(config.build.autoprefixer)])
|
|
151
|
-
.process(
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
})
|
|
156
|
-
.css.toString(),
|
|
157
|
-
{
|
|
158
|
-
from: undefined,
|
|
159
|
-
to: cssPath
|
|
160
|
-
}
|
|
161
|
-
)
|
|
151
|
+
.process(sass.compileString(data).css, {
|
|
152
|
+
from: undefined,
|
|
153
|
+
to: cssPath
|
|
154
|
+
})
|
|
162
155
|
.then((result) => fs.outputFile(cssPath, result.css, 'utf-8'));
|
|
163
156
|
}
|
|
164
157
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "punchcutter",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Build fonts",
|
|
5
5
|
"main": "lib/punchcutter.js",
|
|
6
6
|
"repository": {
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"grunt": "1.6.1",
|
|
36
36
|
"grunt-webfont": "git+https://github.com/netbek/grunt-webfont.git#netbek-logger-option",
|
|
37
37
|
"lodash": "4.17.21",
|
|
38
|
-
"node-sass": "9.0.0",
|
|
39
38
|
"nunjucks": "3.2.4",
|
|
40
39
|
"postcss": "8.4.49",
|
|
41
40
|
"prettier": "3.3.3",
|
|
42
41
|
"replace-ext": "2.0.0",
|
|
42
|
+
"sass-embedded": "1.81.0",
|
|
43
43
|
"sharp": "0.33.5",
|
|
44
44
|
"spritesmith": "3.5.1",
|
|
45
45
|
"svgo": "2.8.0",
|