I am trying to update this to current versions
Base on Alpine Nginx with Lua module, and support sass language.
Nginx version: 1.19.4
SASS version: 3.5.4
To build the container run: docker build -t your-name .
To start the container run: docker run --name your-name -v /your/html/path:/usr/share/nginx/html -p your-port:80 -d codeigniter/nginx-lua-sass:3
Custom Nginx configuration: docker run --name your-name -v /your/html/path:/usr/share/nginx/html -v /your/path/default.conf:/etc/nginx/conf.d/default.conf -p your-port:80 -d codeigniter/nginx-lua-sass:3
You can directly access the .scss and .sass file, and Nginx will automatically compile and output to the browser.
Support inline SASS/SCSS, example:
<style type="text/scss">
.demo-1 {
color: red;
.demo-1-1 {
color: blue;
}
}
</style><style type="text/sass">
nav
ul
margin: 0
padding: 0
list-style: none
li
display: inline-block
a
display: block
padding: 6px 12px
text-decoration: none
</style>