Hi there,
I am testing hanami 2.1 for a fews weeks now. I like its architecture together with ROM-db. As it is a young framework, it is difficult to find answers when a problem occur. Here is mine :
For two days now I try to have Hanami processing my .scss files. It seems not to do it out of the box but some tells it does.
My actual code is rather simple :
# app/assets/css/app.css
@import './common.scss';
body {
/* some css code */
}
# app/assets/css/common.scss
// some scss code
When I run bundle exec hanami dev
, it returns an error :
[ERROR] No loader is configured for ".scss" files: app/assets/css/common.scss
app/assets/css/app.css:1:8:
1 │ @import "common.scss";
╵ ~~~~~~~~~~~~~
1 error
[watch] build finished
What am I doing wrong ?
Is a esbuild plugin (like esbuild-sass-plugin
) needed ? If so, how do I insert it in the hanami-assets process ?
Please help…