ideolumo / nox

A opinionated self contained static site generator using pug, sass & gulp
GNU General Public License v2.0
1 stars 0 forks source link

Consistent import paths for pug & sass #14

Open Jikstra opened 6 years ago

Jikstra commented 6 years ago

Currently in sass we have to do something like: @import template/blubb.sass to import /src/template/blubb.sass while in pug we do include /template/blubb.sass to import /src/template/blubb.sass. Both should start with an / for absolute (relative to the source folder) imports

Jikstra commented 5 years ago

To have consistent import resolving methods, we need to patch them for pug, sass and the require for js. How to overwrite the resolve methods:

Jikstra commented 5 years ago

With a consistent resolve method, features like this would be nice:

Jikstra commented 5 years ago

A consistent importer should also allow this: