Closed nring closed 3 years ago
hey, @nring, In my project I delete less-vars-to-js
is ok, can you do a test to help me make sure? I actually haven't developed with nextjs for a long time, so I don't have a project to test.
Apologies! My storybook configuration still depended on less-vars-to-js
, my mistake. Removing that configuration or re-adding less-vars-to-js
makes the build on Heroku succeed again.
I just upgraded to v1.0.6 of
next-plugin-andt-less
. I manually removedless-vars-to-js
from my package.json and re-built on Heroku. The build failed because the build process didn't know how to handle the@
character in .less files. Such as@primary-color: green;
. I was not able to reproduce this with a production build locally. After re-addingless-vars-to-js
, the Heroku build succeeds.My next.config is pretty stripped down as I'm storing my less variables in the Less files themselves:
Note, I am importing
@import '~antd/lib/style/themes/default.less';
in myglobal.less
file: