Open rab1 opened 5 years ago
I think it's a similar issue like https://github.com/postcss/postcss/issues/1102
How to add syntax option as postcss-less
into checklanguagekeys ?
AssetGraph doesn't transpile anything (so injecting postcss-less isn't really an option).
theme.less
shouldn't be parsed as CSS when it has a .less extension, so it's a bit weird.
How is theme.less
being referenced? Via an @import(...)
or a <link rel=stylesheet href=...>
?
It included via link
<link rel="stylesheet" type="text/css" href="/shop/less/theme.less">
Right, then assetgraph is inferring that the target asset is CSS because of the fact that it has a <link rel=stylesheet href=...>
pointing at it, which is not really unreasonable.
What sees to it that this file gets transpiled in your dev setup (server middleware?) and in your production build (assetgraph-builder < 5?)
Which version of assetgraph-builder are you using?
We are using assetgraph-builder@6.4.3
Good! What about the other questions?
While running
checklanguagekeys
getting error in valid lesscomment syntax
This issue was not there in
"assetgraph-builder": "4.12.2"
, error stack is