-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
Spend hours trying to get the plugin to work. Seems like sass-loader and less-loader both changed their options object shapes. I got to the bottom of the issue by exploring antdSassLoader.js and antdLEssLoader.js.
antdSassLoader.js(the error was something likeoptions has an unknown property 'importer')
The issue there is that there is noimporterprop in options anymore, it's insassOptions. So should be something like this:
newOptions.sassOptions = {}
newOptions.sassOptions.importer = importerantdLEssLoader.js(the error was something likeoptions has an unknown property 'modifyVars')
The issue here is thatmodifyVarswas moved insidelessOptionsprop and you also must passjavascriptEnabled: true(without is the error you're getting is (Inline JavaScript is not enabled. Is it set in your options?) tolessOptionslike this:
const newOptions = _extends({}, options, {
lessOptions: {
modifyVars: _extends({}, themeModifyVars, options.modifyVars || {}),
javascriptEnabled: true
}
});Without those changes, you're getting a bunch of different errors.
Screenshots of "successful" configs are attached.
MaxVell89, gz-95, maghost, dsolovieva, jpsierens88 and 2 more
Metadata
Metadata
Assignees
Labels
No labels

