generator-ionic icon indicating copy to clipboard operation
generator-ionic copied to clipboard

Adding SASS with ionic setup sass

Open amartin007 opened this issue 11 years ago • 5 comments

I am trying to add SASS support to an existing project generated by generator-ionic. When I run the ionic setup sass command I get an error saying "No gulpfile found".

amartin007 avatar Jan 14 '15 17:01 amartin007

@amartin007 This project uses grunt, not gulp. Can you post the command you're running? My guess is that you're following instructions that assume you're using the ionic-cli and not the grunt build configuration that is provided in this generator. If you post the exact command then I can confirm for you.

jimthedev avatar Jan 29 '15 21:01 jimthedev

I have the same issue with generator-ionic (is using grunt) to build project. when I runt the 'ionic setup sass' command, CLI saying "No gulpfile found"...

vitamin5x avatar Jun 14 '15 08:06 vitamin5x

The project's app/index.html line 15 incorrectly says :

   <!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above
    <link href="styles/ionic.app.css" rel="stylesheet">
    -->

I'm holding off on manually setting up sass / grunt watch ionic's sass files for now until I hear thats the only way to resolve this.

LunarDevelopment avatar Jun 16 '15 09:06 LunarDevelopment

I just ran in to this problem, to solve it I did the following:

<link href="styles/ionic.app.css" rel="stylesheet">

to

<link href="styles/main.css" rel="stylesheet">

denissellu avatar Oct 25 '15 21:10 denissellu

@LunarDevelopment Same issue, its incorrect/confusing in doc.

@jimthedev can you help us in understanding <!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above -->? Can you guid us how to use sass after scaffolding the project? Thanks!!

vineshhpatel avatar May 12 '16 16:05 vineshhpatel