mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 14:53:34 +01:00
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>
This commit is contained in:
parent
92c09a90f7
commit
953f39822b
1 changed files with 5 additions and 3 deletions
|
@ -5,14 +5,16 @@ import CssMinimizerPlugin from 'css-minimizer-webpack-plugin';
|
||||||
import LicenseCheckerWebpackPlugin from 'license-checker-webpack-plugin';
|
import LicenseCheckerWebpackPlugin from 'license-checker-webpack-plugin';
|
||||||
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
||||||
import MonacoWebpackPlugin from 'monaco-editor-webpack-plugin';
|
import MonacoWebpackPlugin from 'monaco-editor-webpack-plugin';
|
||||||
import {VueLoaderPlugin} from 'vue-loader';
|
import VueLoader from 'vue-loader';
|
||||||
import {ESBuildMinifyPlugin} from 'esbuild-loader';
|
import EsBuildLoader from 'esbuild-loader';
|
||||||
import {resolve, parse, dirname} from 'path';
|
import {resolve, parse, dirname} from 'path';
|
||||||
import webpack from 'webpack';
|
import webpack from 'webpack';
|
||||||
import {fileURLToPath} from 'url';
|
import {fileURLToPath} from 'url';
|
||||||
|
|
||||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
const {VueLoaderPlugin} = VueLoader;
|
||||||
|
const {ESBuildMinifyPlugin} = EsBuildLoader;
|
||||||
const {SourceMapDevToolPlugin} = webpack;
|
const {SourceMapDevToolPlugin} = webpack;
|
||||||
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||||
const glob = (pattern) => fastGlob.sync(pattern, {cwd: __dirname, absolute: true});
|
const glob = (pattern) => fastGlob.sync(pattern, {cwd: __dirname, absolute: true});
|
||||||
|
|
||||||
const themes = {};
|
const themes = {};
|
||||||
|
|
Loading…
Reference in a new issue