aleph.js
aleph.js copied to clipboard
v0.3.0 Smart Transforms with Sass Plugin
{/* import css */}
<link rel="stylesheet" href="../styles/app.css" />
Will this be expanded to allow for .scss and .sass when using the sass plugin?
I was previously using Import component to avoid the "Could not find module" error with the TS import of a .scss, but I'm not even sure where to get the Import component from anymore. Is it removed?
Is it still possible to import.scss with the sass plugin with these latest changes?
Example 1: Using regular import.
import '../style/layout.scss'
VSCode Could not find module "../style/layout.scss" locally.
console ERROR Unknown loader 'scss'
browser Cannot resolve module "file:///<project>/.aleph/development/style/layout.scss..js"
Example 2: Try to use new smart transforms for SCSS.
{/* import css */}
<link rel="stylesheet" href="../styles/layout.scss" />
console ERROR module '/styles/layout.scss' not found
browser App loads, but styles from layout.scss not applied.
did you add the sass plugin?