Skip to content

Instantly share code, notes, and snippets.

@realph
Last active August 29, 2015 14:03
Show Gist options
  • Save realph/17c0f9740a3e52b46cd4 to your computer and use it in GitHub Desktop.
Save realph/17c0f9740a3e52b46cd4 to your computer and use it in GitHub Desktop.
Adding CSS @import to theme development using Grunt and Gulp

Navigate to the root of your theme in Terminal.

1. Installing grunt globally

npm install -g grunt-cli

I ended up preceding this with sudo to get it working.

2. Move Gemfile, Gruntfile.js and package.json to your theme's root

3. Install gulp (globally) and gulp-cssimport

npm install gulp
npm install gulp-cssimport

4. Install required packages

npm install

5. Run bundle install

bundle install

6. Run grunt

grunt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment