fix: compile error when updating less-loader to v6 (#2194)

This commit is contained in:
Pocholo Pantoja 2020-05-06 11:09:24 +08:00 committed by GitHub
parent eddabaf598
commit 7557ac9dad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -121,7 +121,7 @@
"json-templater": "^1.2.0",
"jsonp": "^0.2.1",
"less": "^3.9.0",
"less-loader": "^5.0.0",
"less-loader": "^6.0.0",
"less-plugin-npm-import": "^2.1.0",
"lint-staged": "^10.0.0",
"marked": "0.3.18",

View File

@ -59,7 +59,15 @@ module.exports = {
loader: 'css-loader',
options: { sourceMap: true },
},
{ loader: 'less-loader', options: { sourceMap: true, javascriptEnabled: true } },
{
loader: 'less-loader',
options: {
lessOptions: {
sourceMap: true,
javascriptEnabled: true,
},
},
},
],
},
{