{"id":2237,"date":"2017-05-29T15:10:04","date_gmt":"2017-05-29T10:10:04","guid":{"rendered":"https:\/\/ahmadawais.com\/?p=2237"},"modified":"2017-05-29T23:36:56","modified_gmt":"2017-05-29T18:36:56","slug":"introducing-wpsass-use-sass-wordpress-via-node-npm-scripts","status":"publish","type":"post","link":"https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/","title":{"rendered":"Introducing WPSass: Use Sass with WordPress via Node NPM Scripts"},"content":{"rendered":"<p>\ud83d\ude4c WPSass is a simple way to use Sass with WordPress via Node NPM Scripts in SCSS flavor.<\/p>\n<h2 style=\"text-align: center;\" style=\"text-align: center;\" id=\"%f0%9f%9a%80-wpsass-on-github-%e2%98%85-98-%e2%91%82-14-%e2%86%92\">\ud83d\ude80 <a href=\"https:\/\/github.com\/ahmadawais\/WPSass\">WPSass on GITHUB: \u2605 98 \u2442 14 \u2192<\/a><a href=\"#%f0%9f%9a%80-wpsass-on-github-%e2%98%85-98-%e2%91%82-14-%e2%86%92\" class=\"heading-link\">#<\/a><\/h2>\n<p>\ud83e\udd14 So, I am working on a WP REST API product launch, for which I had to build several simple HTML pages inside WordPress. All I had to do was compile Sass to CSS. Where I found <a href=\"https:\/\/github.com\/ahmadawais\/WPGulp\">WPGulp<\/a> to be an overkill.<\/p>\n<p>So, I went ahead and wrote a very simple package for just one thing. Sass to CSS conversion in WordPress development. It doesn&#8217;t even use Gulp. Use Sass with WordPress via Node NPM Scripts in SCSS flavor.<\/p>\n<table width=\"100%\">\n<tr>\n<td align=\"left\" width=\"100%\" colspan=\"2\">\n            <strong>WPSass<\/strong><br \/>\n            Use Sass with WordPress via NPM Scripts.\n        <\/td>\n<\/tr>\n<tr>\n<td>\n            A FOSS (Free &#038; Open Source Software) project. Maintained by <a href=\"https:\/\/github.com\/ahmadawais\">@AhmadAwais<\/a>.\n        <\/td>\n<td align=\"center\">\n            <a href=\"https:\/\/AhmadAwais.com\/\"><br \/>\n                <img decoding=\"async\" src=\"https:\/\/i.imgur.com\/Asg4d3k.png\" width=\"100\" \/><br \/>\n            <\/a>\n        <\/td>\n<\/tr>\n<\/table>\n<p>Use Sass with WordPress, Node Script in SCSS flavor.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/u6BnFfC.png\" alt=\"WPSass\" \/><\/p>\n<p>Make sure you have node installed. If not <a href=\"https:\/\/nodejs.org\/en\/download\/\">download and install node<\/a>.<\/p>\n<h2 id=\"%e2%86%92-step-1-install-nodejs-npm\">\u2192 STEP #1: Install NodeJS &amp; NPM<a href=\"#%e2%86%92-step-1-install-nodejs-npm\" class=\"heading-link\">#<\/a><\/h2>\n<p>After installing NodeJS you can verify the install of both NodeJS and Node Package Manager by typing the following commands. This step needs to be followed only once i.e. if you don&#8217;t have NodeJS installed. No need to repeat it ever again.<\/p>\n<pre><code class=\"language-bash\">node -v\n# v7.10.0\n\nnpm -v\n# 4.2.0<\/code><\/pre>\n<h2 id=\"%e2%86%92-step-2-download-package-json\">\u2192 Step #2. Download <code>package.json<\/code><a href=\"#%e2%86%92-step-2-download-package-json\" class=\"heading-link\">#<\/a><\/h2>\n<p>Download <a href=\"https:\/\/git.io\/vHLHg\"><code>package.json<\/code><\/a> file inside the root folder of your WordPress plugin or WordPress theme<br \/>\nIf you have cURL installed then you can run the following command to download it in one go (just make sure you open the root folder of your WordPress plugin or WordPress theme and download <a href=\"https:\/\/git.io\/vHLHg\"><code>package.json<\/code><\/a> file in it).<\/p>\n<pre><code class=\"language-bash\">curl -L 'https:\/\/git.io\/wpsass' -o package.json<\/code><\/pre>\n<h2 id=\"%e2%86%92-step-3-installing-node-dependencies\">\u2192 STEP #3: Installing Node Dependencies<a href=\"#%e2%86%92-step-3-installing-node-dependencies\" class=\"heading-link\">#<\/a><\/h2>\n<p>We are in the root folder of our WordPress plugin or WordPress theme at the moment, let&#8217;s install the Node Dependencies. In the terminal run this command and wait for it to download all the NodeJS dependencies. It&#8217;s a one time process and can take about a minute depending on the internet speed of your connection.<\/p>\n<pre><code class=\"language-bash\"># For MAC OS X run the following command with super user\nsudo npm install\n\n# For Linux run the following command\nnpm install<\/code><\/pre>\n<h2 id=\"%e2%86%92-step-4-configure-npm-scripts\">\u2192 STEP #4: Configure NPM Scripts<a href=\"#%e2%86%92-step-4-configure-npm-scripts\" class=\"heading-link\">#<\/a><\/h2>\n<p>Now, configure the NPM scripts. There are only two of them. If you open the <a href=\"https:\/\/git.io\/vHLHg\"><code>package.json<\/code><\/a> file. There are two scripts as follows:<\/p>\n<pre><code class=\"language-json\">\"scripts\": {\n  \"css\": \"node-sass --output-style compressed --include-path scss assets\/css\/source.scss style.css\",\n  \"watch\": \"nodemon -e scss -x \\\"npm run css\\\"\"\n},<\/code><\/pre>\n<p>In the <code>css<\/code> script, you need to change<\/p>\n<ul>\n<li>SCSS Source File Path &amp; Name \u2014 <code>assets\/css\/source.scss<\/code><\/li>\n<li>Destination CSS File Path &amp; Name \u2014 <code>style.css<\/code><\/li>\n<\/ul>\n<blockquote>\n<p>NOTE: That currently this little app has following file structure<\/p>\n<pre><code class=\"language-bash\">\u251c\u2500\u2500 assets\n|  \u2514\u2500\u2500 css\n|     \u251c\u2500\u2500 partial\n|     |  \u251c\u2500\u2500 base.scss\n|     |  \u2514\u2500\u2500 variables.scss\n|     \u251c\u2500\u2500 source.scss\n|     \u2514\u2500\u2500 vendor\n|        \u2514\u2500\u2500 normalize.css\n\u251c\u2500\u2500 index.html\n\u251c\u2500\u2500 package.json\n\u2514\u2500\u2500 style.css<\/code><\/pre>\n<\/blockquote>\n<p><code>source.scss<\/code> is the source file for SCSS files, which imports files from <code>partials<\/code> and <code>vendor<\/code> directory. This gets compiled into a <code>style.css<\/code> file in the root of our project as configured in the npm script.<\/p>\n<h2 id=\"%e2%86%92-step-5-run-npm-scripts\">\u2192 STEP #5: Run NPM Scripts<a href=\"#%e2%86%92-step-5-run-npm-scripts\" class=\"heading-link\">#<\/a><\/h2>\n<p>All that&#8217;s left now is for you to run the NPM script in the root folder of your WP project \u2014 where you downloaded the <a href=\"https:\/\/git.io\/vHLHg\"><code>package.json<\/code><\/a> file.<\/p>\n<blockquote>\n<p>NOTE: Before you run, make sure there is a source SCSS file. Otherwise running the script will display this error <code>An output directory must be specified when compiling a directory<\/code>.<\/p>\n<\/blockquote>\n<pre><code class=\"language-bash\"># Compile CSS.\nnpm run css<\/code><\/pre>\n<pre><code class=\"language-bash\"># Watch changes in SCSS files and compile CSS automatically.\nnpm run watch<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/tIelJwy.gif\" alt=\"Run\" \/><\/p>\n<h2 id=\"%e2%86%92-step-6-share\">\u2192 STEP #6: Share!<a href=\"#%e2%86%92-step-6-share\" class=\"heading-link\">#<\/a><\/h2>\n<p>Yup, there are no more steps. Just share it with your friends. Or <a href=\"https:\/\/twitter.com\/home?status=%F0%9F%94%A5%20WPSass%3A%20A%20neat%20little%20pkg%20by%20%40MrAhmadAwais%20to%20compile%20%26%20watch%20Sass%20SCSS%20to%20CSS%20via%20NPM%20Scripts%20%E2%80%94%20take%20a%20look%20%E2%86%92%20ahmda.ws\/to_WPS\">Click to Tweet about it<\/a>.<\/p>\n<h2 id=\"contribute\">Contribute<a href=\"#contribute\" class=\"heading-link\">#<\/a><\/h2>\n<p>Feel free to contribute. PR&#8217;s are welcomed.<\/p>\n<h2 id=\"changelog\">Changelog<a href=\"#changelog\" class=\"heading-link\">#<\/a><\/h2>\n<h3 id=\"version-1-0-0\">Version 1.0.0<a href=\"#version-1-0-0\" class=\"heading-link\">#<\/a><\/h3>\n<ul>\n<li>First version<\/li>\n<li>Compile: SCSS to CSS<\/li>\n<li>Watch: Changes in SCSS<\/li>\n<\/ul>\n<h2 id=\"license\">License<a href=\"#license\" class=\"heading-link\">#<\/a><\/h2>\n<p>Released under MIT License.<br \/>\nCopyright <a href=\"https:\/\/AhmadAwais.com\/\">Ahmad Awais<\/a><\/p>\n<p>It&#8217;s free and open source. Issues\/PR&#8217;s are welcomed on GitHub.<\/p>\n<h2 style=\"text-align: center;\" style=\"text-align: center;\" id=\"%f0%9f%9a%80-wpsass-on-github-%e2%98%85-98-%e2%91%82-14-%e2%86%92\">\ud83d\ude80 <a href=\"https:\/\/github.com\/ahmadawais\/WPSass\">WPSass on GITHUB: \u2605 98 \u2442 14 \u2192<\/a><a href=\"#%f0%9f%9a%80-wpsass-on-github-%e2%98%85-98-%e2%91%82-14-%e2%86%92\" class=\"heading-link\">#<\/a><\/h2>\n<p>Let me know what you think about this :)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was working on a new project, where I only needed to convert Sass to CSS in a WordPress site. Since WPGulp was an overkill for this, I went ahead and built WPSass. Just does one thing, and does it well. <\/p>\n","protected":false},"author":2,"featured_media":2238,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"webmentions_disabled_pings":false,"webmentions_disabled":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[150,151],"class_list":["post-2237","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-wordpress-sass","tag-wp-sass-scss"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Introducing WPSass: Use Sass with WordPress via Node NPM Scripts<\/title>\n<meta name=\"description\" content=\"I was working on a new project, where I only needed to convert Sass to CSS in a WordPress site. Since WPGulp was an overkill for this, I went ahead and built WPSass. Just does one thing, and does it well.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Introducing WPSass: Use Sass with WordPress via Node NPM Scripts\" \/>\n<meta property=\"og:description\" content=\"I was working on a new project, where I only needed to convert Sass to CSS in a WordPress site. Since WPGulp was an overkill for this, I went ahead and built WPSass. Just does one thing, and does it well.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/\" \/>\n<meta property=\"og:site_name\" content=\"Ahmad Awais\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/AhmadAwais\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/AhmadAwais\" \/>\n<meta property=\"article:published_time\" content=\"2017-05-29T10:10:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-05-29T18:36:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ahmadawais.com\/wp-content\/uploads\/2017\/05\/WPSass.png\" \/>\n\t<meta property=\"og:image:width\" content=\"719\" \/>\n\t<meta property=\"og:image:height\" content=\"293\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ahmad Awais\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MrAhmadAwais\" \/>\n<meta name=\"twitter:site\" content=\"@MrAhmadAwais\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ahmad Awais\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\\\/\"},\"author\":{\"name\":\"Ahmad Awais\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\"},\"headline\":\"Introducing WPSass: Use Sass with WordPress via Node NPM Scripts\",\"datePublished\":\"2017-05-29T10:10:04+00:00\",\"dateModified\":\"2017-05-29T18:36:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\\\/\"},\"wordCount\":175,\"commentCount\":6,\"publisher\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\"},\"image\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/WPSass.png\",\"keywords\":[\"WordPress Sass\",\"WP Sass SCSS\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ahmadawais.com\\\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\\\/\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\\\/\",\"name\":\"Introducing WPSass: Use Sass with WordPress via Node NPM Scripts\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/WPSass.png\",\"datePublished\":\"2017-05-29T10:10:04+00:00\",\"dateModified\":\"2017-05-29T18:36:56+00:00\",\"description\":\"I was working on a new project, where I only needed to convert Sass to CSS in a WordPress site. Since WPGulp was an overkill for this, I went ahead and built WPSass. Just does one thing, and does it well.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ahmadawais.com\\\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\\\/#primaryimage\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/WPSass.png\",\"contentUrl\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/WPSass.png\",\"width\":719,\"height\":293},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ahmadawais.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Introducing WPSass: Use Sass with WordPress via Node NPM Scripts\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#website\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/\",\"name\":\"Ahmad Awais\",\"description\":\"Founder &amp; CEO of CommandCode.ai f\\\/k\\\/a Langbase | Google Developers Advisory Board (gDAB) founding member\",\"publisher\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ahmadawais.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\",\"name\":\"Ahmad Awais\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\",\"contentUrl\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\",\"width\":2299,\"height\":1705,\"caption\":\"Ahmad Awais\"},\"logo\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\"},\"description\":\"Founder & CEO of \u2318 Command Code coding agent with taste. Founded Langbase.com, AI cloud to build, deploy, and scale AI agents with tools & memory \u00b7 Creator of Command.new. \\\"Awais is an awesome example for developers\\\" \u2014 Satya Nadella, CEO of Microsoft. NASA Mars Ingenuity Helicopter mission code contributor 8th GitHub Stars Award recipient with 5x GitHub Stars Award (Listed as GitHub's #1 JavaScript trending developer). Google Developers Expert Web DevRel. Ex VP Eng (DevTools & DevRel) Rapid \u00b7 Google Developers Advisory Board (gDAB) founding member \u00b7 AI\\\/ML\\\/DevTools Angel Investor (Replit, Resend, Daytona, Gumroad and you?) \u276f AI\\\/ML Advisory Board San Francisco, DevNetwork. Award-winning Open Source Engineering leader authored hundreds of open-source dev-tools and software libraries used by millions of developers, including Shades of Purple code theme and corona-cli. Linux Foundation (Node.js Committee Lead), OpenAPI Business Governing Board. Taught 108K+ developers via NodeCLI.com and VSCode.pro course. 274 million views, blogging for 24 yrs. \u276f Read more about Ahmad Awais or come say hi on \ud835\udd4f @MrAhmadAwais.\",\"sameAs\":[\"https:\\\/\\\/AhmadAwais.com\\\/\",\"https:\\\/\\\/facebook.com\\\/AhmadAwais\",\"https:\\\/\\\/instagram.com\\\/MrAhmadAwais\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/MrAhmadAwais\\\/\",\"https:\\\/\\\/x.com\\\/MrAhmadAwais\",\"https:\\\/\\\/youtube.com\\\/AhmadAwais\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Introducing WPSass: Use Sass with WordPress via Node NPM Scripts","description":"I was working on a new project, where I only needed to convert Sass to CSS in a WordPress site. Since WPGulp was an overkill for this, I went ahead and built WPSass. Just does one thing, and does it well.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/","og_locale":"en_US","og_type":"article","og_title":"Introducing WPSass: Use Sass with WordPress via Node NPM Scripts","og_description":"I was working on a new project, where I only needed to convert Sass to CSS in a WordPress site. Since WPGulp was an overkill for this, I went ahead and built WPSass. Just does one thing, and does it well.","og_url":"https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/","og_site_name":"Ahmad Awais","article_publisher":"https:\/\/facebook.com\/AhmadAwais","article_author":"https:\/\/facebook.com\/AhmadAwais","article_published_time":"2017-05-29T10:10:04+00:00","article_modified_time":"2017-05-29T18:36:56+00:00","og_image":[{"width":719,"height":293,"url":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2017\/05\/WPSass.png","type":"image\/png"}],"author":"Ahmad Awais","twitter_card":"summary_large_image","twitter_creator":"@MrAhmadAwais","twitter_site":"@MrAhmadAwais","twitter_misc":{"Written by":"Ahmad Awais","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/#article","isPartOf":{"@id":"https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/"},"author":{"name":"Ahmad Awais","@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"headline":"Introducing WPSass: Use Sass with WordPress via Node NPM Scripts","datePublished":"2017-05-29T10:10:04+00:00","dateModified":"2017-05-29T18:36:56+00:00","mainEntityOfPage":{"@id":"https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/"},"wordCount":175,"commentCount":6,"publisher":{"@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"image":{"@id":"https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/#primaryimage"},"thumbnailUrl":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2017\/05\/WPSass.png","keywords":["WordPress Sass","WP Sass SCSS"],"articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/","url":"https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/","name":"Introducing WPSass: Use Sass with WordPress via Node NPM Scripts","isPartOf":{"@id":"https:\/\/ahmadawais.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/#primaryimage"},"image":{"@id":"https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/#primaryimage"},"thumbnailUrl":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2017\/05\/WPSass.png","datePublished":"2017-05-29T10:10:04+00:00","dateModified":"2017-05-29T18:36:56+00:00","description":"I was working on a new project, where I only needed to convert Sass to CSS in a WordPress site. Since WPGulp was an overkill for this, I went ahead and built WPSass. Just does one thing, and does it well.","breadcrumb":{"@id":"https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/#primaryimage","url":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2017\/05\/WPSass.png","contentUrl":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2017\/05\/WPSass.png","width":719,"height":293},{"@type":"BreadcrumbList","@id":"https:\/\/ahmadawais.com\/introducing-wpsass-use-sass-wordpress-via-node-npm-scripts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ahmadawais.com\/"},{"@type":"ListItem","position":2,"name":"Introducing WPSass: Use Sass with WordPress via Node NPM Scripts"}]},{"@type":"WebSite","@id":"https:\/\/ahmadawais.com\/#website","url":"https:\/\/ahmadawais.com\/","name":"Ahmad Awais","description":"Founder &amp; CEO of CommandCode.ai f\/k\/a Langbase | Google Developers Advisory Board (gDAB) founding member","publisher":{"@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ahmadawais.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b","name":"Ahmad Awais","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg","url":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg","contentUrl":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg","width":2299,"height":1705,"caption":"Ahmad Awais"},"logo":{"@id":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg"},"description":"Founder & CEO of \u2318 Command Code coding agent with taste. Founded Langbase.com, AI cloud to build, deploy, and scale AI agents with tools & memory \u00b7 Creator of Command.new. \"Awais is an awesome example for developers\" \u2014 Satya Nadella, CEO of Microsoft. NASA Mars Ingenuity Helicopter mission code contributor 8th GitHub Stars Award recipient with 5x GitHub Stars Award (Listed as GitHub's #1 JavaScript trending developer). Google Developers Expert Web DevRel. Ex VP Eng (DevTools & DevRel) Rapid \u00b7 Google Developers Advisory Board (gDAB) founding member \u00b7 AI\/ML\/DevTools Angel Investor (Replit, Resend, Daytona, Gumroad and you?) \u276f AI\/ML Advisory Board San Francisco, DevNetwork. Award-winning Open Source Engineering leader authored hundreds of open-source dev-tools and software libraries used by millions of developers, including Shades of Purple code theme and corona-cli. Linux Foundation (Node.js Committee Lead), OpenAPI Business Governing Board. Taught 108K+ developers via NodeCLI.com and VSCode.pro course. 274 million views, blogging for 24 yrs. \u276f Read more about Ahmad Awais or come say hi on \ud835\udd4f @MrAhmadAwais.","sameAs":["https:\/\/AhmadAwais.com\/","https:\/\/facebook.com\/AhmadAwais","https:\/\/instagram.com\/MrAhmadAwais\/","https:\/\/www.linkedin.com\/in\/MrAhmadAwais\/","https:\/\/x.com\/MrAhmadAwais","https:\/\/youtube.com\/AhmadAwais"]}]}},"jetpack_featured_media_url":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2017\/05\/WPSass.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/posts\/2237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/comments?post=2237"}],"version-history":[{"count":0,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/posts\/2237\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/media\/2238"}],"wp:attachment":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/media?parent=2237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/categories?post=2237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/tags?post=2237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}