We use cookies and other tracking technologies to improve your browsing experience on our site, analyze site traffic, and understand where our audience is coming from. To find out more, please read our privacy policy.

By choosing 'I Accept', you consent to our use of cookies and other tracking technologies.

We use cookies and other tracking technologies to improve your browsing experience on our site, analyze site traffic, and understand where our audience is coming from. To find out more, please read our privacy policy.

By choosing 'I Accept', you consent to our use of cookies and other tracking technologies. Less

We use cookies and other tracking technologies... More

Login or register
to publish this job!

Login or register
to save this job!

Login or register
to save interesting jobs!

Login or register
to get access to all your job applications!

Login or register to start contributing with an article!

Login or register
to see more jobs from this company!

Login or register
to boost this post!

Show some love to the author of this blog by giving their post some rocket fuel 🚀.

Login or register to search for your ideal job!

Login or register to start working on this issue!

Login or register
to save articles!

Login to see the application

Engineers who find a new job through Java Works average a 15% increase in salary 🚀

You will be redirected back to this page right after signin

SASS files without rules generate `undefined` in their .cljc files

Issue closed
Pull requests: 1
Contributors: 5
Level: Intermediate
  • JavaScript
  • $50
Issue closed
Pull requests: 1
Contributors: 5
Level: Intermediate
  • JavaScript
  • $50

On GitHub

Webpack plugin that allows you to use CSS modules from comfort of your CLJ/CLJS application
More info >

Issue posted by: 
acron0's avatar

Antony Woods

Description

Currently, any SASS files that don't directly include a rule (for example, files with only import statements) generate invalid .cljc files, as they include the word undefined beneath the namespace declaration.

Steps to reproduce

  • Clone the project
  • cd cljc-css-loader/example
  • cat /dev/null >| styles/main.sass (bash; removes content from main.sass)
  • npx webpack
  • cat cljc/styles/main.cljc

Expected outcome

  • main.cljc is a valid CLJC file and contains only the namespace declaration
    OR
  • main.cljc is not generated at all

Actual outcome

  • main.cljc is not a valid CLJC file
(ns styles.main)
undefined
  • bug
  • help wanted

Use Open Source Issues to hire or get hired

On GitHub

Webpack plugin that allows you to use CSS modules from comfort of your CLJ/CLJS application
More info >

Issue posted by: 
acron0's avatar

Antony Woods

Use Open Source Issues to hire or get hired

SASS files without rules generate `undefined` in their .cljc files
View on GitHub