sassets

package
v0.0.0-...-43e1acc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileJavascripts

func CompileJavascripts(c *modulir.Context, inPath, outPath string) error

CompileJavascripts compiles a set of JS files into a single large file by appending them all to each other. Files are appended in alphabetical order so we depend on the fact that there aren't too many interdependencies between files. A common requirement can be given an underscore prefix to be loaded first.

func CompileStylesheets

func CompileStylesheets(c *modulir.Context, inPath, outPath string) error

CompileStylesheets compiles a set of stylesheet files into a single large file by appending them all to each other. Files are appended in alphabetical order so we depend on the fact that there aren't too many interdependencies between files. CSS reset in particular is given an underscore prefix so that it gets to load first.

If a file has a ".sass" suffix, we attempt to render it as GCSS. This isn't a perfect symmetry, but works well enough for these cases.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL