diff options
author | silverwind | 2020-07-27 23:01:25 +0200 |
---|---|---|
committer | GitHub | 2020-07-27 17:01:25 -0400 |
commit | 78cbd0ca72619a25849edc3460ec0c492b838a59 (patch) | |
tree | ed76273e7e19c947ae26e226dc740f5a97131e3c /webpack.config.js | |
parent | 8d6fa00da06e52cba1aaed5ba2a187fed8cd63de (diff) |
Update JS deps and linting config (#12295)
- update js deps to latest versions
- remove eslint-plugin-sonarjs to prevent a warning on install. can be
added again once it's updated to support eslint 7.x
- enable new linting rules from eslint-plugin-unicorn
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js index 637ff5d94..42959a50e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -21,8 +21,8 @@ for (const path of glob('web_src/less/themes/*.less')) { const isProduction = process.env.NODE_ENV !== 'development'; -const filterCssImport = (parsedImport, cssFile) => { - const url = parsedImport && parsedImport.url ? parsedImport.url : parsedImport; +const filterCssImport = (url, ...args) => { + const cssFile = args[1] || args[0]; // resourcePath is 2nd argument for url and 3rd for import const importedFile = url.replace(/[?#].+/, '').toLowerCase(); if (cssFile.includes('fomantic')) { |