Skip to content

Commit

Permalink
Upgrade JS sass libs.
Browse files Browse the repository at this point in the history
See issue #369

Upgrade sass libs to work with Node 16.
  • Loading branch information
knadh committed May 23, 2021
1 parent dea4d18 commit f5221ab
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 436 deletions.
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@
"humps": "^2.0.1",
"lodash": "^4.17.21",
"node-forge": "^0.10.0",
"node-sass": "^4.14.1",
"qs": "^6.9.4",
"quill": "^1.3.7",
"quill-delta": "^4.2.2",
"sass-loader": "^8.0.2",
"textversionjs": "^1.1.3",
"turndown": "^7.0.0",
"vue": "^2.6.12",
Expand All @@ -46,6 +44,8 @@
"eslint": "^7.27.0",
"eslint-plugin-import": "^2.23.3",
"eslint-plugin-vue": "^7.9.0",
"sass": "^1.34.0",
"sass-loader": "^10.2.0",
"vue-template-compiler": "^2.6.12"
}
}
22 changes: 15 additions & 7 deletions frontend/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,20 @@ module.exports = {
productionSourceMap: false,
filenameHashing: true,

devServer: {
css: {
loaderOptions: {
sass: {
implementation: require('sass'), // This line must in sass option
},
},
},

devServer: {
port: process.env.LISTMONK_FRONTEND_PORT || 8080,
proxy: {
'^/api': {
target: process.env.LISTMONK_API_URL || 'http://127.0.0.1:9000'
}
}
}
proxy: {
'^/api': {
target: process.env.LISTMONK_API_URL || 'http://127.0.0.1:9000'
}
}
}
};
Loading

0 comments on commit f5221ab

Please sign in to comment.