Jump to content

Recommended Posts

Posted

So hi another question for you.

I did my first page bootstrap and ProcessWire almost finished.

The next page I want to do with files of ZURB Foundation and the compiled CSS.

In the system before, there was to a finished module. This is available for PW Yes net and I would therefore incorporate Foundation itself. With normal data not a problem but with SASS already.

How should we proceed so that the PW CSS files always kompliert and then stores?

Would be grateful for tips and suggestions as I am not a PHP programmer.

Thanks for help

Chris

  • Like 1
Posted

Sass compilation is not the job of processwire. You're doing that with one of various tools out there on your local machine and you'll simply link the compiled css file in your markup, which processwire will generate.

Posted
Ok but there must also go directly into the system and not only to the local PC and in the development environment?

What tools I would need as integrate?

Sorry'm really Noob!
Posted

If you think about the /site/templates/ folder as if it is the root of a static html site, then it is easier to see what happens.

When I use sass, I have a scss folder somewhere on the site (it can be within templates, or elsewhere, it doesn't matter).

I then compile the main scss file and output it in /site/templates/css/  as something like site.css.

Then your templates in your templates folder simply reference that file.  I personally use Prepros, but there are a lot of systems out there.

  • Like 1
Posted

Thank you Joss and LostKobrakai

I'll try it Koala or Scout. Let's see if I can refresh my php skills so well again.

The best would be to not compiled data list in a Textares and to edit and then send the save by the compiler and thus to secure the Templates folder.

Posted

If you really want to compile the sass files on the server via PHP, there is http://leafo.net/scssphp/. Only works for scss syntax, though.

When you start working with sass/scss, I'd encourage you to follow the already proposed workflow:

compile locally -> upload compiled css to server.

  • Like 2
  • 5 weeks later...
Posted

If you can use PHPStorm, there is a File watchers for SCSS, LESS etc.

Other nice solution is Grunt or Gulp. Documentation is helping and not so hard to setup in console / terminal

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...