Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme customizing not working #306

Open
stan-golembivsky opened this issue Aug 25, 2020 · 0 comments
Open

Theme customizing not working #306

stan-golembivsky opened this issue Aug 25, 2020 · 0 comments

Comments

@stan-golembivsky
Copy link

stan-golembivsky commented Aug 25, 2020

After following steps from theme customizing article getting error

ValidationError: Invalid options object. Less Loader has been initialized using an options object that does not match the API schema. options has an unknown property 'modifyVars'. These properties are valid: object { lessOptions?, prependData?, appendData?, sourceMap?, implementation? }

found the solution by passing lessOptions to addLessLoader method

addLessLoader({
    lessOptions: {
      javascriptEnabled: true,
      modifyVars: {
        'overrideTheme': `true; @import "${ path.resolve(__dirname, './src/theme.less') }";`,
      }
    }
  })

As far as i understood it depends on the less-loader version. Please change this step in the docs with less-loader version mentioning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant