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