Coder Social home page Coder Social logo

Comments (4)

janhoogeveen avatar janhoogeveen commented on August 19, 2024

Just realised I can also change the Compass CSS output directory to generate CSS files in the <%= yeoman.app %> directory as a workaround. However changing the plugin to accept an array of base directories means integrating this project with Yeoman generated projects would be a bit easier. (I'm using generator-angular 0.7.1 at the moment)

You'll need to add the LiveReload snippet manually in your php files to get live changes.

from grunt-php.

janhoogeveen avatar janhoogeveen commented on August 19, 2024

Taken a look at grunt-contrib-connect and tried to implement this. Seems to be working in my setup.

#22

from grunt-php.

sindresorhus avatar sindresorhus commented on August 19, 2024

This would probably be possible by using the https://github.com/sindresorhus/grunt-php#router option, but not something I care about. I would be happy to accept a doc PR showing how to do it though ;)

from grunt-php.

janhoogeveen avatar janhoogeveen commented on August 19, 2024

Got it working on a default generator-angular project.

Add a route.php file to the root directory of your app and paste the following contents in it.

<?php
if ($_SERVER["REQUEST_URI"] == "/styles/main.css" ) {
  header("Content-type: text/css");
  readfile("../.tmp/styles/main.css");
} else {
  return false;
}
?>

from grunt-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.