update laptop config
This commit is contained in:
338 files changed
+45564
-122
No files matched your search
+20
@@ -0,0 +1,20 @@
|
||||
// No-op stub for ttf2woff2.
|
||||
// The extension only generates WOFF fonts (not WOFF2), so the native
|
||||
// ttf2woff2 module is never used. This stub replaces the real package
|
||||
// to avoid requiring node-gyp, Python, and C++ build tools.
|
||||
//
|
||||
// If WOFF2 support is ever needed, remove the "ttf2woff2" resolution
|
||||
// override from the root package.json.
|
||||
|
||||
const { Transform } = require('stream');
|
||||
|
||||
module.exports = function ttf2woff2(opts) {
|
||||
return new Transform({
|
||||
transform(chunk, encoding, callback) {
|
||||
callback(new Error(
|
||||
'ttf2woff2 is stubbed out. The extension only generates WOFF fonts. ' +
|
||||
'If you need WOFF2, remove the ttf2woff2 resolution override from package.json.'
|
||||
));
|
||||
}
|
||||
});
|
||||
};
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "ttf2woff2",
|
||||
"version": "8.0.1",
|
||||
"description": "No-op stub. The extension only generates WOFF (not WOFF2) fonts, so this native module is unnecessary. This stub prevents node-gyp/Python/C++ from being required during yarn install.",
|
||||
"main": "index.js"
|
||||
}
|
||||
Reference in new issue
Block a user