From cbcd64bcd451433ba47be1dc1a422baff1190284 Mon Sep 17 00:00:00 2001 From: rafalp Date: Fri, 17 Nov 2023 21:34:08 +0100 Subject: [PATCH] Remove remaining old admin build configs --- .eslintrc.json | 4 --- babel.config.js | 6 ----- webpack.config.js | 65 ----------------------------------------------- 3 files changed, 75 deletions(-) delete mode 100644 .eslintrc.json delete mode 100644 babel.config.js delete mode 100644 webpack.config.js diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index cc481d2590..0000000000 --- a/.eslintrc.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "parser": "babel-eslint", - "extends": "eslint-config-react-app" -} \ No newline at end of file diff --git a/babel.config.js b/babel.config.js deleted file mode 100644 index 65f78ddb40..0000000000 --- a/babel.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - presets: [ - "@babel/preset-env", - "@babel/preset-react" - ], -}; \ No newline at end of file diff --git a/webpack.config.js b/webpack.config.js deleted file mode 100644 index 8f3a2630be..0000000000 --- a/webpack.config.js +++ /dev/null @@ -1,65 +0,0 @@ -const path = require("path") - -const MiniCssExtractPlugin = require("mini-css-extract-plugin") - -module.exports = (env, argv) => { - const isProduction = argv.mode === "production"; - - return { - mode: isProduction ? "production" : "development", - devtool: "source-map", - cache: false, - entry: "./misago/admin/src/index.js", - output: { - path: path.resolve(__dirname, "misago", "static", "misago", "admin"), - filename: "index.js" - }, - module: { - rules: [ - { - test: /\.jsx?$/, - exclude: /node_modules/, - use: { - loader: "babel-loader", - options: { - cacheDirectory: true, - cacheCompression: false, - envName: isProduction ? "production" : "development", - }, - }, - }, - { - test: /\.mjs/, - resolve: { - fullySpecified: false - } - }, - { - test: /\.(sa|sc|c)ss$/, - use: [ - MiniCssExtractPlugin.loader, - "css-loader", - { - loader: "postcss-loader", - options: { - postcssOptions: { - plugins: function() { - return [ - require("autoprefixer") - ] - } - } - } - }, - "sass-loader" - ] - } - ] - }, - plugins: [ - new MiniCssExtractPlugin({ - filename: "index.css" - }), - ] - } -} \ No newline at end of file