
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
gulp-elm-css
Advanced tools
Given an *.elm
file, it will use elm-css
to generate *.css
files. A vinyl object will be emitted for each *.css
file that is generated.
on the elm side
-- HomeCss.elm
module HomeCss exposing (..)
import Css exposing (..)
import Css.Namespace exposing (namespace)
type CssIds
= Home
css =
(stylesheet << namespace "home")
[ id Home
[ backgroundColor (hex "000000")
, color (hex "FFFFFF")
]
]
-- MyStyles.elm
port module MyStyles exposing (..)
import Css.File exposing (CssFileStructure, CssCompilerProgram)
import AboutCss
import HomeCss
import SharedCss
port files : CssFileStructure -> Cmd msg
fileStructure : CssFileStructure
fileStructure =
Css.File.toFileStructure
[ ( "shared.css", Css.File.compile [ SharedCss.css ] )
, ( "home.css", Css.File.compile [ HomeCss.css ] )
, ( "about.css", Css.File.compile [ AboutCss.css ] )
]
main : CssCompilerProgram
main =
Css.File.compiler files fileStructure
on the gulp side
const elmCss = require('gulp-elm-css')
gulp.task('compile-css', () => {
return gulp.src('MyStyles.elm')
.pipe(elmCss({ module: 'MyStyles '}))
.pipe(cssnano())
.pipe(gulp.dest('build'))
})
FAQs
A gulp plugin wrapping the elm-css module
The npm package gulp-elm-css receives a total of 5 weekly downloads. As such, gulp-elm-css popularity was classified as not popular.
We found that gulp-elm-css demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.