Dominic Bou-Samra
Dominic Bou-Samra

Reputation: 15416

Nanoc - compile output different to nanoc view

If you create a new nanoc site, and then run nanoc view, it works well. The CSS, pathing, and assets are correctly handled. However, when I run a nanoc compile, it's not handled the same way. I get broken CSS, broken paths etc.

What is causing this - I assume it's the rules and

Upvotes: 1

Views: 157

Answers (1)

Ariejan
Ariejan

Reputation: 11079

Compile only generates files in /output. Opening one of the html files there is possible, but as the docs state, your browser will not be able to find the CSS files.

Either use nanoc view to load CSS files correctly, or use a local web server to view the files. (Note: nanoc view is nothing more than a local web server).

Upvotes: 1

Related Questions