diff options
author | Kindyroo <24992312+Run2948@users.noreply.github.com> | 2021-04-16 04:07:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-15 16:07:31 -0400 |
commit | 953f39822b6dced03a8ae3f724a8d54753e5fffc (patch) | |
tree | c72ae30c53fee6b97b0f65c8a7783de818ffa78a | |
parent | 92c09a90f78990216ae4358c988a6e94c324c9e5 (diff) | |
download | gitea-953f39822b6dced03a8ae3f724a8d54753e5fffc.tar.gz gitea-953f39822b6dced03a8ae3f724a8d54753e5fffc.zip |
Fix: npx webpack make: *** [Makefile:699: public/js/index.js] Error -… (#15465)
* Fix: npx webpack make: *** [Makefile:699: public/js/index.js] Error -1073741819
* Update webpack.config.js
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: silverwind <me@silverwind.io>
-rw-r--r-- | webpack.config.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/webpack.config.js b/webpack.config.js index 53d5538250..a84492f608 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -5,14 +5,16 @@ import CssMinimizerPlugin from 'css-minimizer-webpack-plugin'; import LicenseCheckerWebpackPlugin from 'license-checker-webpack-plugin'; import MiniCssExtractPlugin from 'mini-css-extract-plugin'; import MonacoWebpackPlugin from 'monaco-editor-webpack-plugin'; -import {VueLoaderPlugin} from 'vue-loader'; -import {ESBuildMinifyPlugin} from 'esbuild-loader'; +import VueLoader from 'vue-loader'; +import EsBuildLoader from 'esbuild-loader'; import {resolve, parse, dirname} from 'path'; import webpack from 'webpack'; import {fileURLToPath} from 'url'; -const __dirname = dirname(fileURLToPath(import.meta.url)); +const {VueLoaderPlugin} = VueLoader; +const {ESBuildMinifyPlugin} = EsBuildLoader; const {SourceMapDevToolPlugin} = webpack; +const __dirname = dirname(fileURLToPath(import.meta.url)); const glob = (pattern) => fastGlob.sync(pattern, {cwd: __dirname, absolute: true}); const themes = {}; |