How to use the @stylable/node.attachHook function in @stylable/node

To help you get started, we’ve selected a few @stylable/node examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wix / wix-ui-tpa / .autotools / node-require-hooks.js View on Github external
const { resolveNamespaceFactory } = require('@stylable/node');
const project = require('yoshi-config');
  stylableConfig: {
    resolveNamespace: resolveNamespaceFactory(,
const path = require('path');
const fs = require('fs');
const svgr = require('@svgr/core');
const babelCore = require('@babel/core');

require.extensions['.svg'] = mockSvg;
require.extensions['.scss'] = mockScss;

function mockScss(module) {
  module.exports = {
    default: '',


Integrate Stylable into your node application

Latest version published 8 days ago

Package Health Score

69 / 100
Full package analysis

Similar packages