Open oupala opened 6 years ago
I added some code in order to include files from outside the src
directory but this does not help:
[...]
.use(assets({
source: './node_modules/highlight.js/styles',
destination: './vendor/css'
}))
.use(rename([
[/\.css$/, ".scss"]
]))
[...]
Although I add css files from highlight.js
to the metalsmith pipeline, they cannot be renamed inside the pipeline so that metalsmith-sass can process them.
I'm trying to use metalsmith-rename and I'm having some difficulty to make it work properly.
I declared the plugin in my metalsmith script and I use it:
But when I try to build my website, I get an error:
It appears that the css files are not renamed to scss. Could it be due to the fact that css files are stored in the
node_modules
directory instead of thesrc
directory?