How to use the sass/sass.dart.js.run_ function in sass

To help you get started, we’ve selected a few sass 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 HashBrownCMS / hashbrown-cms / webpack.config.js View on Github external
};

// Compile SASS
// NOTE: We're compiling SASS separately, since depending on the WebPack process is too slow
let sassArgs = [];

if(isWatching) { 
    sassArgs.push('--watch');
}

sassArgs.push('--source-map');
sassArgs.push('--embed-sources'),
sassArgs.push('./src/Client/Style/client.scss:./public/css/client.css');
sassArgs.push('./style/index.scss:./public/css/style.css');

sass.run_(sassArgs);